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.

333 lines
17 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.0.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/master/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/cb773002846bf95679021a2f387f38ee71e6242d/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/master/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/cb773002846bf95679021a2f387f38ee71e6242d/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/master/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/cb773002846bf95679021a2f387f38ee71e6242d/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__2___0_System_String___1_">ReflectionUtil.SetField&lt;T, U&gt;(T, String, U)</a>
  269. </div>
  270. <div>
  271. <a class="xref" href="IPA.Utilities.ReflectionUtil.html#IPA_Utilities_ReflectionUtil_GetField__2___1_System_String_">ReflectionUtil.GetField&lt;U, T&gt;(T, String)</a>
  272. </div>
  273. <div>
  274. <a class="xref" href="IPA.Utilities.ReflectionUtil.html#IPA_Utilities_ReflectionUtil_SetProperty__2___0_System_String___1_">ReflectionUtil.SetProperty&lt;T, U&gt;(T, String, U)</a>
  275. </div>
  276. <div>
  277. <a class="xref" href="IPA.Utilities.ReflectionUtil.html#IPA_Utilities_ReflectionUtil_GetProperty__2___1_System_String_">ReflectionUtil.GetProperty&lt;U, T&gt;(T, String)</a>
  278. </div>
  279. <div>
  280. <a class="xref" href="IPA.Utilities.ReflectionUtil.html#IPA_Utilities_ReflectionUtil_InvokeMethod__2___1_System_String_System_Object___">ReflectionUtil.InvokeMethod&lt;U, T&gt;(T, String, Object[])</a>
  281. </div>
  282. </article>
  283. </div>
  284. <div class="hidden-sm col-md-2" role="complementary">
  285. <div class="sideaffix">
  286. <div class="contribution">
  287. <ul class="nav">
  288. <li>
  289. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/new/master/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>
  290. </li>
  291. <li>
  292. <a href="https://github.com/beat-saber-modding-group/BeatSaber-IPA-Reloaded/blob/cb773002846bf95679021a2f387f38ee71e6242d/IPA.Loader/Logging/Printers/GlobalLogFilePrinter.cs/#L10" class="contribution-link">View Source</a>
  293. </li>
  294. </ul>
  295. </div>
  296. <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
  297. <!-- <p><a class="back-to-top" href="#top">Back to top</a><p> -->
  298. </nav>
  299. </div>
  300. </div>
  301. </div>
  302. </div>
  303. <footer>
  304. <div class="grad-bottom"></div>
  305. <div class="footer">
  306. <div class="container">
  307. <span class="pull-right">
  308. <a href="#top">Back to top</a>
  309. </span>
  310. <span>Generated by <strong>DocFX</strong></span>
  311. </div>
  312. </div>
  313. </footer>
  314. </div>
  315. <script type="text/javascript" src="../styles/docfx.vendor.js"></script>
  316. <script type="text/javascript" src="../styles/docfx.js"></script>
  317. <script type="text/javascript" src="../styles/main.js"></script>
  318. </body>
  319. </html>