You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

322 lines
16 KiB

  1. <!DOCTYPE html>
  2. <!--[if IE]><![endif]-->
  3. <html>
  4. <head>
  5. <meta charset="utf-8">
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  7. <title>Class GlobalLogFilePrinter
  8. </title>
  9. <meta name="viewport" content="width=device-width">
  10. <meta name="title" content="Class GlobalLogFilePrinter
  11. ">
  12. <meta name="generator" content="docfx 2.42.4.0">
  13. <link rel="shortcut icon" href="../favicon.ico">
  14. <link rel="stylesheet" href="../styles/docfx.vendor.css">
  15. <link rel="stylesheet" href="../styles/docfx.css">
  16. <link rel="stylesheet" href="../styles/main.css">
  17. <link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">
  18. <meta property="docfx:navrel" content="../toc.html">
  19. <meta property="docfx:tocrel" content="toc.html">
  20. </head> <body data-spy="scroll" data-target="#affix" data-offset="120">
  21. <div id="wrapper">
  22. <header>
  23. <nav id="autocollapse" class="navbar navbar-inverse ng-scope" role="navigation">
  24. <div class="container">
  25. <div class="navbar-header">
  26. <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar">
  27. <span class="sr-only">Toggle navigation</span>
  28. <span class="icon-bar"></span>
  29. <span class="icon-bar"></span>
  30. <span class="icon-bar"></span>
  31. </button>
  32. <a class="navbar-brand" href="../index.html">
  33. <img id="logo" class="svg" src="../logo.svg" alt="">
  34. </a>
  35. </div>
  36. <div class="collapse navbar-collapse" id="navbar">
  37. <form class="navbar-form navbar-right" role="search" id="search">
  38. <div class="form-group">
  39. <input type="text" class="form-control" id="search-query" placeholder="Search" autocomplete="off">
  40. </div>
  41. </form>
  42. </div>
  43. </div>
  44. </nav>
  45. <div class="subnav navbar navbar-default">
  46. <div class="container hide-when-search" id="breadcrumb">
  47. <ul class="breadcrumb">
  48. <li></li>
  49. </ul>
  50. </div>
  51. </div>
  52. </header>
  53. <div role="main" class="container body-content hide-when-search">
  54. <div class="sidenav hide-when-search">
  55. <a class="btn toc-toggle collapse" data-toggle="collapse" href="#sidetoggle" aria-expanded="false" aria-controls="sidetoggle">Show / Hide Table of Contents</a>
  56. <div class="sidetoggle collapse" id="sidetoggle">
  57. <div id="sidetoc"></div>
  58. </div>
  59. </div>
  60. <div class="article row grid-right">
  61. <div class="col-md-10">
  62. <article class="content wrap" id="_content" data-uid="IPA.Logging.Printers.GlobalLogFilePrinter">
  63. <h1 id="IPA_Logging_Printers_GlobalLogFilePrinter" data-uid="IPA.Logging.Printers.GlobalLogFilePrinter" class="text-break">Class GlobalLogFilePrinter
  64. </h1>
  65. <div class="markdown level0 summary"><p>A printer for all messages to a unified log location.</p>
  66. </div>
  67. <div class="markdown level0 conceptual"></div>
  68. <div class="inheritance">
  69. <h5>Inheritance</h5>
  70. <div class="level0"><span class="xref">System.Object</span></div>
  71. <div class="level1"><a class="xref" href="IPA.Logging.LogPrinter.html">LogPrinter</a></div>
  72. <div class="level2"><a class="xref" href="IPA.Logging.Printers.GZFilePrinter.html">GZFilePrinter</a></div>
  73. <div class="level3"><span class="xref">GlobalLogFilePrinter</span></div>
  74. </div>
  75. <div classs="implements">
  76. <h5>Implements</h5>
  77. <div><span class="xref">System.IDisposable</span></div>
  78. </div>
  79. <div class="inheritedMembers">
  80. <h5>Inherited Members</h5>
  81. <div>
  82. <a class="xref" href="IPA.Logging.Printers.GZFilePrinter.html#IPA_Logging_Printers_GZFilePrinter_FileWriter">GZFilePrinter.FileWriter</a>
  83. </div>
  84. <div>
  85. <a class="xref" href="IPA.Logging.Printers.GZFilePrinter.html#IPA_Logging_Printers_GZFilePrinter_StartPrint">GZFilePrinter.StartPrint()</a>
  86. </div>
  87. <div>
  88. <a class="xref" href="IPA.Logging.Printers.GZFilePrinter.html#IPA_Logging_Printers_GZFilePrinter_EndPrint">GZFilePrinter.EndPrint()</a>
  89. </div>
  90. <div>
  91. <a class="xref" href="IPA.Logging.Printers.GZFilePrinter.html#IPA_Logging_Printers_GZFilePrinter_Dispose">GZFilePrinter.Dispose()</a>
  92. </div>
  93. <div>
  94. <a class="xref" href="IPA.Logging.Printers.GZFilePrinter.html#IPA_Logging_Printers_GZFilePrinter_Dispose_System_Boolean_">GZFilePrinter.Dispose(Boolean)</a>
  95. </div>
  96. <div>
  97. <span class="xref">System.Object.ToString()</span>
  98. </div>
  99. <div>
  100. <span class="xref">System.Object.Equals(System.Object)</span>
  101. </div>
  102. <div>
  103. <span class="xref">System.Object.Equals(System.Object, System.Object)</span>
  104. </div>
  105. <div>
  106. <span class="xref">System.Object.ReferenceEquals(System.Object, System.Object)</span>
  107. </div>
  108. <div>
  109. <span class="xref">System.Object.GetHashCode()</span>
  110. </div>
  111. <div>
  112. <span class="xref">System.Object.GetType()</span>
  113. </div>
  114. <div>
  115. <span class="xref">System.Object.MemberwiseClone()</span>
  116. </div>
  117. </div>
  118. <h6><strong>Namespace</strong>: <a class="xref" href="IPA.Logging.Printers.html">IPA.Logging.Printers</a></h6>
  119. <h6><strong>Assembly</strong>: IPA.Loader.dll</h6>
  120. <h5 id="IPA_Logging_Printers_GlobalLogFilePrinter_syntax">Syntax</h5>
  121. <div class="codewrapper">
  122. <pre><code class="lang-csharp hljs">public class GlobalLogFilePrinter : GZFilePrinter, IDisposable</code></pre>
  123. </div>
  124. <h3 id="properties">Properties
  125. </h3>
  126. <span class="small pull-right mobile-hide">
  127. <span class="divider">|</span>
  128. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/new/master/apiSpec/new?filename=IPA_Logging_Printers_GlobalLogFilePrinter_Filter.md&amp;value=---%0Auid%3A%20IPA.Logging.Printers.GlobalLogFilePrinter.Filter%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  129. </span>
  130. <span class="small pull-right mobile-hide">
  131. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/blob/master/IPA.Loader/Logging/Printers/GlobalLogFilePrinter.cs/#L15">View Source</a>
  132. </span>
  133. <a id="IPA_Logging_Printers_GlobalLogFilePrinter_Filter_" data-uid="IPA.Logging.Printers.GlobalLogFilePrinter.Filter*"></a>
  134. <h4 id="IPA_Logging_Printers_GlobalLogFilePrinter_Filter" data-uid="IPA.Logging.Printers.GlobalLogFilePrinter.Filter">Filter</h4>
  135. <div class="markdown level1 summary"><p>Provides a filter for this specific printer.</p>
  136. </div>
  137. <div class="markdown level1 conceptual"></div>
  138. <h5 class="decalaration">Declaration</h5>
  139. <div class="codewrapper">
  140. <pre><code class="lang-csharp hljs">public override Logger.LogLevel Filter { get; set; }</code></pre>
  141. </div>
  142. <h5 class="propertyValue">Property Value</h5>
  143. <table class="table table-bordered table-striped table-condensed">
  144. <thead>
  145. <tr>
  146. <th>Type</th>
  147. <th>Description</th>
  148. </tr>
  149. </thead>
  150. <tbody>
  151. <tr>
  152. <td><a class="xref" href="IPA.Logging.Logger.LogLevel.html">Logger.LogLevel</a></td>
  153. <td><p>the filter level for this printer</p>
  154. </td>
  155. </tr>
  156. </tbody>
  157. </table>
  158. <h5 class="overrides">Overrides</h5>
  159. <div><a class="xref" href="IPA.Logging.LogPrinter.html#IPA_Logging_LogPrinter_Filter">LogPrinter.Filter</a></div>
  160. <h3 id="methods">Methods
  161. </h3>
  162. <span class="small pull-right mobile-hide">
  163. <span class="divider">|</span>
  164. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/new/master/apiSpec/new?filename=IPA_Logging_Printers_GlobalLogFilePrinter_GetFileInfo.md&amp;value=---%0Auid%3A%20IPA.Logging.Printers.GlobalLogFilePrinter.GetFileInfo%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  165. </span>
  166. <span class="small pull-right mobile-hide">
  167. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/blob/master/IPA.Loader/Logging/Printers/GlobalLogFilePrinter.cs/#L34">View Source</a>
  168. </span>
  169. <a id="IPA_Logging_Printers_GlobalLogFilePrinter_GetFileInfo_" data-uid="IPA.Logging.Printers.GlobalLogFilePrinter.GetFileInfo*"></a>
  170. <h4 id="IPA_Logging_Printers_GlobalLogFilePrinter_GetFileInfo" data-uid="IPA.Logging.Printers.GlobalLogFilePrinter.GetFileInfo">GetFileInfo()</h4>
  171. <div class="markdown level1 summary"><p>Gets the <span class="xref">System.IO.FileInfo</span> for the target file.</p>
  172. </div>
  173. <div class="markdown level1 conceptual"></div>
  174. <h5 class="decalaration">Declaration</h5>
  175. <div class="codewrapper">
  176. <pre><code class="lang-csharp hljs">protected override FileInfo GetFileInfo()</code></pre>
  177. </div>
  178. <h5 class="returns">Returns</h5>
  179. <table class="table table-bordered table-striped table-condensed">
  180. <thead>
  181. <tr>
  182. <th>Type</th>
  183. <th>Description</th>
  184. </tr>
  185. </thead>
  186. <tbody>
  187. <tr>
  188. <td><span class="xref">System.IO.FileInfo</span></td>
  189. <td><p>the target file to write to</p>
  190. </td>
  191. </tr>
  192. </tbody>
  193. </table>
  194. <h5 class="overrides">Overrides</h5>
  195. <div><a class="xref" href="IPA.Logging.Printers.GZFilePrinter.html#IPA_Logging_Printers_GZFilePrinter_GetFileInfo">GZFilePrinter.GetFileInfo()</a></div>
  196. <span class="small pull-right mobile-hide">
  197. <span class="divider">|</span>
  198. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/new/master/apiSpec/new?filename=IPA_Logging_Printers_GlobalLogFilePrinter_Print_IPA_Logging_Logger_Level_System_DateTime_System_String_System_String_.md&amp;value=---%0Auid%3A%20IPA.Logging.Printers.GlobalLogFilePrinter.Print(IPA.Logging.Logger.Level%2CSystem.DateTime%2CSystem.String%2CSystem.String)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  199. </span>
  200. <span class="small pull-right mobile-hide">
  201. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/blob/master/IPA.Loader/Logging/Printers/GlobalLogFilePrinter.cs/#L24">View Source</a>
  202. </span>
  203. <a id="IPA_Logging_Printers_GlobalLogFilePrinter_Print_" data-uid="IPA.Logging.Printers.GlobalLogFilePrinter.Print*"></a>
  204. <h4 id="IPA_Logging_Printers_GlobalLogFilePrinter_Print_IPA_Logging_Logger_Level_System_DateTime_System_String_System_String_" data-uid="IPA.Logging.Printers.GlobalLogFilePrinter.Print(IPA.Logging.Logger.Level,System.DateTime,System.String,System.String)">Print(Logger.Level, DateTime, String, String)</h4>
  205. <div class="markdown level1 summary"><p>Prints an entry to the associated file.</p>
  206. </div>
  207. <div class="markdown level1 conceptual"></div>
  208. <h5 class="decalaration">Declaration</h5>
  209. <div class="codewrapper">
  210. <pre><code class="lang-csharp hljs">public override void Print(Logger.Level level, DateTime time, string logName, string message)</code></pre>
  211. </div>
  212. <h5 class="parameters">Parameters</h5>
  213. <table class="table table-bordered table-striped table-condensed">
  214. <thead>
  215. <tr>
  216. <th>Type</th>
  217. <th>Name</th>
  218. <th>Description</th>
  219. </tr>
  220. </thead>
  221. <tbody>
  222. <tr>
  223. <td><a class="xref" href="IPA.Logging.Logger.Level.html">Logger.Level</a></td>
  224. <td><span class="parametername">level</span></td>
  225. <td><p>the <a class="xref" href="IPA.Logging.Logger.Level.html">Logger.Level</a> of the message</p>
  226. </td>
  227. </tr>
  228. <tr>
  229. <td><span class="xref">System.DateTime</span></td>
  230. <td><span class="parametername">time</span></td>
  231. <td><p>the <span class="xref">System.DateTime</span> the message was recorded at</p>
  232. </td>
  233. </tr>
  234. <tr>
  235. <td><span class="xref">System.String</span></td>
  236. <td><span class="parametername">logName</span></td>
  237. <td><p>the name of the log that sent the message</p>
  238. </td>
  239. </tr>
  240. <tr>
  241. <td><span class="xref">System.String</span></td>
  242. <td><span class="parametername">message</span></td>
  243. <td><p>the message to print</p>
  244. </td>
  245. </tr>
  246. </tbody>
  247. </table>
  248. <h5 class="overrides">Overrides</h5>
  249. <div><a class="xref" href="IPA.Logging.LogPrinter.html#IPA_Logging_LogPrinter_Print_IPA_Logging_Logger_Level_System_DateTime_System_String_System_String_">LogPrinter.Print(Logger.Level, DateTime, String, String)</a></div>
  250. <h3 id="implements">Implements</h3>
  251. <div>
  252. <span class="xref">System.IDisposable</span>
  253. </div>
  254. <h3 id="extensionmethods">Extension Methods</h3>
  255. <div>
  256. <a class="xref" href="IPA.Utilities.ReflectionUtil.html#IPA_Utilities_ReflectionUtil_SetPrivateField_System_Object_System_String_System_Object_">ReflectionUtil.SetPrivateField(Object, String, Object)</a>
  257. </div>
  258. <div>
  259. <a class="xref" href="IPA.Utilities.ReflectionUtil.html#IPA_Utilities_ReflectionUtil_GetPrivateField__1_System_Object_System_String_">ReflectionUtil.GetPrivateField&lt;T&gt;(Object, String)</a>
  260. </div>
  261. <div>
  262. <a class="xref" href="IPA.Utilities.ReflectionUtil.html#IPA_Utilities_ReflectionUtil_SetPrivateProperty_System_Object_System_String_System_Object_">ReflectionUtil.SetPrivateProperty(Object, String, Object)</a>
  263. </div>
  264. <div>
  265. <a class="xref" href="IPA.Utilities.ReflectionUtil.html#IPA_Utilities_ReflectionUtil_InvokePrivateMethod_System_Object_System_String_System_Object___">ReflectionUtil.InvokePrivateMethod(Object, String, Object[])</a>
  266. </div>
  267. <div>
  268. <a class="xref" href="IPA.Utilities.ReflectionUtil.html#IPA_Utilities_ReflectionUtil_InvokePrivateMethod__1_System_Object_System_String_System_Object___">ReflectionUtil.InvokePrivateMethod&lt;T&gt;(Object, String, Object[])</a>
  269. </div>
  270. </article>
  271. </div>
  272. <div class="hidden-sm col-md-2" role="complementary">
  273. <div class="sideaffix">
  274. <div class="contribution">
  275. <ul class="nav">
  276. <li>
  277. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/new/master/apiSpec/new?filename=IPA_Logging_Printers_GlobalLogFilePrinter.md&amp;value=---%0Auid%3A%20IPA.Logging.Printers.GlobalLogFilePrinter%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A" class="contribution-link">Improve this Doc</a>
  278. </li>
  279. <li>
  280. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/blob/master/IPA.Loader/Logging/Printers/GlobalLogFilePrinter.cs/#L9" class="contribution-link">View Source</a>
  281. </li>
  282. </ul>
  283. </div>
  284. <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
  285. <!-- <p><a class="back-to-top" href="#top">Back to top</a><p> -->
  286. </nav>
  287. </div>
  288. </div>
  289. </div>
  290. </div>
  291. <footer>
  292. <div class="grad-bottom"></div>
  293. <div class="footer">
  294. <div class="container">
  295. <span class="pull-right">
  296. <a href="#top">Back to top</a>
  297. </span>
  298. <span>Generated by <strong>DocFX</strong></span>
  299. </div>
  300. </div>
  301. </footer>
  302. </div>
  303. <script type="text/javascript" src="../styles/docfx.vendor.js"></script>
  304. <script type="text/javascript" src="../styles/docfx.js"></script>
  305. <script type="text/javascript" src="../styles/main.js"></script>
  306. </body>
  307. </html>