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.

348 lines
18 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.48.1.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 rel="stylesheet" href="../styles/fix.css">
  18. <link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
  19. <meta property="docfx:navrel" content="../toc.html">
  20. <meta property="docfx:tocrel" content="toc.html">
  21. <meta property="docfx:rel" content="../">
  22. <meta property="docfx:newtab" content="true">
  23. </head> <body data-spy="scroll" data-target="#affix" data-offset="120">
  24. <div id="wrapper">
  25. <header>
  26. <nav id="autocollapse" class="navbar navbar-inverse ng-scope" role="navigation">
  27. <div class="container">
  28. <div class="navbar-header">
  29. <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar">
  30. <span class="sr-only">Toggle navigation</span>
  31. <span class="icon-bar"></span>
  32. <span class="icon-bar"></span>
  33. <span class="icon-bar"></span>
  34. </button>
  35. <a class="navbar-brand" href="../index.html">
  36. <img id="logo" class="svg" src="../logo.svg" alt="">
  37. </a>
  38. </div>
  39. <div class="collapse navbar-collapse" id="navbar">
  40. <form class="navbar-form navbar-right" role="search" id="search">
  41. <div class="form-group">
  42. <input type="text" class="form-control" id="search-query" placeholder="Search" autocomplete="off">
  43. </div>
  44. </form>
  45. </div>
  46. </div>
  47. </nav>
  48. <div class="subnav navbar navbar-default">
  49. <div class="container hide-when-search" id="breadcrumb">
  50. <ul class="breadcrumb">
  51. <li></li>
  52. </ul>
  53. </div>
  54. </div>
  55. </header>
  56. <div class="container body-content">
  57. <div id="search-results">
  58. <div class="search-list"></div>
  59. <div class="sr-items">
  60. <p><i class="glyphicon glyphicon-refresh index-loading"></i></p>
  61. </div>
  62. <ul id="pagination"></ul>
  63. </div>
  64. </div>
  65. <div role="main" class="container body-content hide-when-search">
  66. <div class="sidenav hide-when-search">
  67. <a class="btn toc-toggle collapse" data-toggle="collapse" href="#sidetoggle" aria-expanded="false" aria-controls="sidetoggle">Show / Hide Table of Contents</a>
  68. <div class="sidetoggle collapse" id="sidetoggle">
  69. <div id="sidetoc"></div>
  70. </div>
  71. </div>
  72. <div class="article row grid-right">
  73. <div class="col-md-10">
  74. <article class="content wrap" id="_content" data-uid="IPA.Logging.Printers.GlobalLogFilePrinter">
  75. <h1 id="IPA_Logging_Printers_GlobalLogFilePrinter" data-uid="IPA.Logging.Printers.GlobalLogFilePrinter" class="text-break">Class GlobalLogFilePrinter
  76. </h1>
  77. <div class="markdown level0 summary"><p>A printer for all messages to a unified log location.</p>
  78. </div>
  79. <div class="markdown level0 conceptual"></div>
  80. <div class="inheritance">
  81. <h5>Inheritance</h5>
  82. <div class="level0"><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.object">Object</a></div>
  83. <div class="level1"><a class="xref" href="IPA.Logging.LogPrinter.html">LogPrinter</a></div>
  84. <div class="level2"><a class="xref" href="IPA.Logging.Printers.GZFilePrinter.html">GZFilePrinter</a></div>
  85. <div class="level3"><span class="xref">GlobalLogFilePrinter</span></div>
  86. </div>
  87. <div classs="implements">
  88. <h5>Implements</h5>
  89. <div><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.idisposable">IDisposable</a></div>
  90. </div>
  91. <div class="inheritedMembers">
  92. <h5>Inherited Members</h5>
  93. <div>
  94. <a class="xref" href="IPA.Logging.Printers.GZFilePrinter.html#IPA_Logging_Printers_GZFilePrinter_FileWriter">GZFilePrinter.FileWriter</a>
  95. </div>
  96. <div>
  97. <a class="xref" href="IPA.Logging.Printers.GZFilePrinter.html#IPA_Logging_Printers_GZFilePrinter_StartPrint">GZFilePrinter.StartPrint()</a>
  98. </div>
  99. <div>
  100. <a class="xref" href="IPA.Logging.Printers.GZFilePrinter.html#IPA_Logging_Printers_GZFilePrinter_EndPrint">GZFilePrinter.EndPrint()</a>
  101. </div>
  102. <div>
  103. <a class="xref" href="IPA.Logging.Printers.GZFilePrinter.html#IPA_Logging_Printers_GZFilePrinter_Dispose">GZFilePrinter.Dispose()</a>
  104. </div>
  105. <div>
  106. <a class="xref" href="IPA.Logging.Printers.GZFilePrinter.html#IPA_Logging_Printers_GZFilePrinter_Dispose_System_Boolean_">GZFilePrinter.Dispose(Boolean)</a>
  107. </div>
  108. <div>
  109. <a class="xref" href="https://docs.microsoft.com/dotnet/api/system.object.tostring#System_Object_ToString">Object.ToString()</a>
  110. </div>
  111. <div>
  112. <a class="xref" href="https://docs.microsoft.com/dotnet/api/system.object.equals#System_Object_Equals_System_Object_">Object.Equals(Object)</a>
  113. </div>
  114. <div>
  115. <a class="xref" href="https://docs.microsoft.com/dotnet/api/system.object.equals#System_Object_Equals_System_Object_System_Object_">Object.Equals(Object, Object)</a>
  116. </div>
  117. <div>
  118. <a class="xref" href="https://docs.microsoft.com/dotnet/api/system.object.referenceequals#System_Object_ReferenceEquals_System_Object_System_Object_">Object.ReferenceEquals(Object, Object)</a>
  119. </div>
  120. <div>
  121. <a class="xref" href="https://docs.microsoft.com/dotnet/api/system.object.gethashcode#System_Object_GetHashCode">Object.GetHashCode()</a>
  122. </div>
  123. <div>
  124. <a class="xref" href="https://docs.microsoft.com/dotnet/api/system.object.gettype#System_Object_GetType">Object.GetType()</a>
  125. </div>
  126. <div>
  127. <a class="xref" href="https://docs.microsoft.com/dotnet/api/system.object.memberwiseclone#System_Object_MemberwiseClone">Object.MemberwiseClone()</a>
  128. </div>
  129. </div>
  130. <h6><strong>Namespace</strong>: <a class="xref" href="IPA.Logging.Printers.html">IPA.Logging.Printers</a></h6>
  131. <h6><strong>Assembly</strong>: IPA.Loader.dll</h6>
  132. <h5 id="IPA_Logging_Printers_GlobalLogFilePrinter_syntax">Syntax</h5>
  133. <div class="codewrapper">
  134. <pre><code class="lang-csharp hljs">public class GlobalLogFilePrinter : GZFilePrinter, IDisposable</code></pre>
  135. </div>
  136. <h3 id="properties">Properties
  137. </h3>
  138. <span class="small pull-right mobile-hide">
  139. <span class="divider">|</span>
  140. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/new/4.0.0-beta/docs/override/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>
  141. </span>
  142. <span class="small pull-right mobile-hide">
  143. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/blob/ea42dc2c9b2c3b44161ca163d9cc6aaec44375dd/IPA.Loader/Logging/Printers/GlobalLogFilePrinter.cs/#L16">View Source</a>
  144. </span>
  145. <a id="IPA_Logging_Printers_GlobalLogFilePrinter_Filter_" data-uid="IPA.Logging.Printers.GlobalLogFilePrinter.Filter*"></a>
  146. <h4 id="IPA_Logging_Printers_GlobalLogFilePrinter_Filter" data-uid="IPA.Logging.Printers.GlobalLogFilePrinter.Filter">Filter</h4>
  147. <div class="markdown level1 summary"><p>Provides a filter for this specific printer.</p>
  148. </div>
  149. <div class="markdown level1 conceptual"></div>
  150. <h5 class="decalaration">Declaration</h5>
  151. <div class="codewrapper">
  152. <pre><code class="lang-csharp hljs">public override Logger.LogLevel Filter { get; set; }</code></pre>
  153. </div>
  154. <h5 class="propertyValue">Property Value</h5>
  155. <table class="table table-bordered table-striped table-condensed">
  156. <thead>
  157. <tr>
  158. <th>Type</th>
  159. <th>Description</th>
  160. </tr>
  161. </thead>
  162. <tbody>
  163. <tr>
  164. <td><a class="xref" href="IPA.Logging.Logger.LogLevel.html">Logger.LogLevel</a></td>
  165. <td><p>the filter level for this printer</p>
  166. </td>
  167. </tr>
  168. </tbody>
  169. </table>
  170. <h5 class="overrides">Overrides</h5>
  171. <div><a class="xref" href="IPA.Logging.LogPrinter.html#IPA_Logging_LogPrinter_Filter">LogPrinter.Filter</a></div>
  172. <h3 id="methods">Methods
  173. </h3>
  174. <span class="small pull-right mobile-hide">
  175. <span class="divider">|</span>
  176. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/new/4.0.0-beta/docs/override/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>
  177. </span>
  178. <span class="small pull-right mobile-hide">
  179. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/blob/ea42dc2c9b2c3b44161ca163d9cc6aaec44375dd/IPA.Loader/Logging/Printers/GlobalLogFilePrinter.cs/#L35">View Source</a>
  180. </span>
  181. <a id="IPA_Logging_Printers_GlobalLogFilePrinter_GetFileInfo_" data-uid="IPA.Logging.Printers.GlobalLogFilePrinter.GetFileInfo*"></a>
  182. <h4 id="IPA_Logging_Printers_GlobalLogFilePrinter_GetFileInfo" data-uid="IPA.Logging.Printers.GlobalLogFilePrinter.GetFileInfo">GetFileInfo()</h4>
  183. <div class="markdown level1 summary"><p>Gets the <a class="xref" href="https://docs.microsoft.com/dotnet/api/system.io.fileinfo">FileInfo</a> for the target file.</p>
  184. </div>
  185. <div class="markdown level1 conceptual"></div>
  186. <h5 class="decalaration">Declaration</h5>
  187. <div class="codewrapper">
  188. <pre><code class="lang-csharp hljs">protected override FileInfo GetFileInfo()</code></pre>
  189. </div>
  190. <h5 class="returns">Returns</h5>
  191. <table class="table table-bordered table-striped table-condensed">
  192. <thead>
  193. <tr>
  194. <th>Type</th>
  195. <th>Description</th>
  196. </tr>
  197. </thead>
  198. <tbody>
  199. <tr>
  200. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.io.fileinfo">FileInfo</a></td>
  201. <td><p>the target file to write to</p>
  202. </td>
  203. </tr>
  204. </tbody>
  205. </table>
  206. <h5 class="overrides">Overrides</h5>
  207. <div><a class="xref" href="IPA.Logging.Printers.GZFilePrinter.html#IPA_Logging_Printers_GZFilePrinter_GetFileInfo">GZFilePrinter.GetFileInfo()</a></div>
  208. <span class="small pull-right mobile-hide">
  209. <span class="divider">|</span>
  210. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/new/4.0.0-beta/docs/override/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>
  211. </span>
  212. <span class="small pull-right mobile-hide">
  213. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/blob/ea42dc2c9b2c3b44161ca163d9cc6aaec44375dd/IPA.Loader/Logging/Printers/GlobalLogFilePrinter.cs/#L25">View Source</a>
  214. </span>
  215. <a id="IPA_Logging_Printers_GlobalLogFilePrinter_Print_" data-uid="IPA.Logging.Printers.GlobalLogFilePrinter.Print*"></a>
  216. <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>
  217. <div class="markdown level1 summary"><p>Prints an entry to the associated file.</p>
  218. </div>
  219. <div class="markdown level1 conceptual"></div>
  220. <h5 class="decalaration">Declaration</h5>
  221. <div class="codewrapper">
  222. <pre><code class="lang-csharp hljs">public override void Print(Logger.Level level, DateTime time, string logName, string message)</code></pre>
  223. </div>
  224. <h5 class="parameters">Parameters</h5>
  225. <table class="table table-bordered table-striped table-condensed">
  226. <thead>
  227. <tr>
  228. <th>Type</th>
  229. <th>Name</th>
  230. <th>Description</th>
  231. </tr>
  232. </thead>
  233. <tbody>
  234. <tr>
  235. <td><a class="xref" href="IPA.Logging.Logger.Level.html">Logger.Level</a></td>
  236. <td><span class="parametername">level</span></td>
  237. <td><p>the <a class="xref" href="IPA.Logging.Logger.Level.html">Logger.Level</a> of the message</p>
  238. </td>
  239. </tr>
  240. <tr>
  241. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.datetime">DateTime</a></td>
  242. <td><span class="parametername">time</span></td>
  243. <td><p>the <a class="xref" href="https://docs.microsoft.com/dotnet/api/system.datetime">DateTime</a> the message was recorded at</p>
  244. </td>
  245. </tr>
  246. <tr>
  247. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.string">String</a></td>
  248. <td><span class="parametername">logName</span></td>
  249. <td><p>the name of the log that sent the message</p>
  250. </td>
  251. </tr>
  252. <tr>
  253. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.string">String</a></td>
  254. <td><span class="parametername">message</span></td>
  255. <td><p>the message to print</p>
  256. </td>
  257. </tr>
  258. </tbody>
  259. </table>
  260. <h5 class="overrides">Overrides</h5>
  261. <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>
  262. <h3 id="implements">Implements</h3>
  263. <div>
  264. <a class="xref" href="https://docs.microsoft.com/dotnet/api/system.idisposable">System.IDisposable</a>
  265. </div>
  266. <h3 id="extensionmethods">Extension Methods</h3>
  267. <div>
  268. <a class="xref" href="IPA.Utilities.ReflectionUtil.html#IPA_Utilities_ReflectionUtil_SetField_System_Object_System_String_System_Object_">ReflectionUtil.SetField(Object, String, Object)</a>
  269. </div>
  270. <div>
  271. <a class="xref" href="IPA.Utilities.ReflectionUtil.html#IPA_Utilities_ReflectionUtil_SetField__1___0_System_String_System_Object_">ReflectionUtil.SetField&lt;T&gt;(T, String, Object)</a>
  272. </div>
  273. <div>
  274. <a class="xref" href="IPA.Utilities.ReflectionUtil.html#IPA_Utilities_ReflectionUtil_GetField__1_System_Object_System_String_">ReflectionUtil.GetField&lt;T&gt;(Object, String)</a>
  275. </div>
  276. <div>
  277. <a class="xref" href="IPA.Utilities.ReflectionUtil.html#IPA_Utilities_ReflectionUtil_GetField__2___1_System_String_">ReflectionUtil.GetField&lt;T, U&gt;(U, String)</a>
  278. </div>
  279. <div>
  280. <a class="xref" href="IPA.Utilities.ReflectionUtil.html#IPA_Utilities_ReflectionUtil_SetProperty_System_Object_System_String_System_Object_">ReflectionUtil.SetProperty(Object, String, Object)</a>
  281. </div>
  282. <div>
  283. <a class="xref" href="IPA.Utilities.ReflectionUtil.html#IPA_Utilities_ReflectionUtil_SetProperty__1___0_System_String_System_Object_">ReflectionUtil.SetProperty&lt;T&gt;(T, String, Object)</a>
  284. </div>
  285. <div>
  286. <a class="xref" href="IPA.Utilities.ReflectionUtil.html#IPA_Utilities_ReflectionUtil_InvokeMethod_System_Object_System_String_System_Object___">ReflectionUtil.InvokeMethod(Object, String, Object[])</a>
  287. </div>
  288. <div>
  289. <a class="xref" href="IPA.Utilities.ReflectionUtil.html#IPA_Utilities_ReflectionUtil_InvokeMethod__1___0_System_String_System_Object___">ReflectionUtil.InvokeMethod&lt;T&gt;(T, String, Object[])</a>
  290. </div>
  291. <div>
  292. <a class="xref" href="IPA.Utilities.ReflectionUtil.html#IPA_Utilities_ReflectionUtil_InvokeMethod__1_System_Object_System_String_System_Object___">ReflectionUtil.InvokeMethod&lt;T&gt;(Object, String, Object[])</a>
  293. </div>
  294. <div>
  295. <a class="xref" href="IPA.Utilities.ReflectionUtil.html#IPA_Utilities_ReflectionUtil_InvokeMethod__2___1_System_String_System_Object___">ReflectionUtil.InvokeMethod&lt;T, U&gt;(U, String, Object[])</a>
  296. </div>
  297. </article>
  298. </div>
  299. <div class="hidden-sm col-md-2" role="complementary">
  300. <div class="sideaffix">
  301. <div class="contribution">
  302. <ul class="nav">
  303. <li>
  304. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/new/4.0.0-beta/docs/override/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>
  305. </li>
  306. <li>
  307. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/blob/ea42dc2c9b2c3b44161ca163d9cc6aaec44375dd/IPA.Loader/Logging/Printers/GlobalLogFilePrinter.cs/#L10" class="contribution-link">View Source</a>
  308. </li>
  309. </ul>
  310. </div>
  311. <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
  312. <!-- <p><a class="back-to-top" href="#top">Back to top</a><p> -->
  313. </nav>
  314. </div>
  315. </div>
  316. </div>
  317. </div>
  318. <footer>
  319. <div class="grad-bottom"></div>
  320. <div class="footer">
  321. <div class="container">
  322. <span class="pull-right">
  323. <a href="#top">Back to top</a>
  324. </span>
  325. <span>Generated by <strong>DocFX</strong></span>
  326. </div>
  327. </div>
  328. </footer>
  329. </div>
  330. <script type="text/javascript" src="../styles/docfx.vendor.js"></script>
  331. <script type="text/javascript" src="../styles/docfx.js"></script>
  332. <script type="text/javascript" src="../styles/main.js"></script>
  333. </body>
  334. </html>