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.

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