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.

293 lines
14 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 ColoredConsolePrinter
  8. </title>
  9. <meta name="viewport" content="width=device-width">
  10. <meta name="title" content="Class ColoredConsolePrinter
  11. ">
  12. <meta name="generator" content="docfx 2.59.3.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">Search Results for <span></span></div>
  59. <div class="sr-items">
  60. <p><i class="glyphicon glyphicon-refresh index-loading"></i></p>
  61. </div>
  62. <ul id="pagination" data-first="First" data-prev="Previous" data-next="Next" data-last="Last"></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.ColoredConsolePrinter">
  75. <h1 id="IPA_Logging_Printers_ColoredConsolePrinter" data-uid="IPA.Logging.Printers.ColoredConsolePrinter" class="text-break">Class ColoredConsolePrinter
  76. </h1>
  77. <div class="markdown level0 summary"><p>Prints a pretty message to the console.</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"><span class="xref">ColoredConsolePrinter</span></div>
  85. </div>
  86. <div class="inheritedMembers">
  87. <h5>Inherited Members</h5>
  88. <div>
  89. <a class="xref" href="IPA.Logging.LogPrinter.html#IPA_Logging_LogPrinter_StartPrint">LogPrinter.StartPrint()</a>
  90. </div>
  91. <div>
  92. <a class="xref" href="IPA.Logging.LogPrinter.html#IPA_Logging_LogPrinter_EndPrint">LogPrinter.EndPrint()</a>
  93. </div>
  94. </div>
  95. <h6><strong>Namespace</strong>: <a class="xref" href="IPA.Logging.Printers.html">IPA.Logging.Printers</a></h6>
  96. <h6><strong>Assembly</strong>: IPA.Loader.dll</h6>
  97. <h5 id="IPA_Logging_Printers_ColoredConsolePrinter_syntax">Syntax</h5>
  98. <div class="codewrapper">
  99. <pre><code class="lang-csharp hljs">public class ColoredConsolePrinter : LogPrinter</code></pre>
  100. </div>
  101. <h3 id="properties">Properties
  102. </h3>
  103. <span class="small pull-right mobile-hide">
  104. <span class="divider">|</span>
  105. <a href="https://github.com/nike4613/BeatSaber-IPA-Reloaded/new/master/docs/override/new?filename=IPA_Logging_Printers_ColoredConsolePrinter_Color.md&amp;value=---%0Auid%3A%20IPA.Logging.Printers.ColoredConsolePrinter.Color%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>
  106. </span>
  107. <span class="small pull-right mobile-hide">
  108. <a href="https://github.com/nike4613/BeatSaber-IPA-Reloaded/blob/0ba9d3c46d55d5ae58d8887ac27b303379298b53/IPA.Loader/Logging/Printers/ColoredConsolePrinter.cs/#L23">View Source</a>
  109. </span>
  110. <a id="IPA_Logging_Printers_ColoredConsolePrinter_Color_" data-uid="IPA.Logging.Printers.ColoredConsolePrinter.Color*"></a>
  111. <h4 id="IPA_Logging_Printers_ColoredConsolePrinter_Color" data-uid="IPA.Logging.Printers.ColoredConsolePrinter.Color">Color</h4>
  112. <div class="markdown level1 summary"><p>The color to print messages as.</p>
  113. </div>
  114. <div class="markdown level1 conceptual"></div>
  115. <h5 class="decalaration">Declaration</h5>
  116. <div class="codewrapper">
  117. <pre><code class="lang-csharp hljs">public ConsoleColor Color { get; set; }</code></pre>
  118. </div>
  119. <h5 class="propertyValue">Property Value</h5>
  120. <table class="table table-bordered table-striped table-condensed">
  121. <thead>
  122. <tr>
  123. <th>Type</th>
  124. <th>Description</th>
  125. </tr>
  126. </thead>
  127. <tbody>
  128. <tr>
  129. <td><span class="xref">ConsoleColor</span></td>
  130. <td><p>the color to print this message as</p>
  131. </td>
  132. </tr>
  133. </tbody>
  134. </table>
  135. <span class="small pull-right mobile-hide">
  136. <span class="divider">|</span>
  137. <a href="https://github.com/nike4613/BeatSaber-IPA-Reloaded/new/master/docs/override/new?filename=IPA_Logging_Printers_ColoredConsolePrinter_Filter.md&amp;value=---%0Auid%3A%20IPA.Logging.Printers.ColoredConsolePrinter.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>
  138. </span>
  139. <span class="small pull-right mobile-hide">
  140. <a href="https://github.com/nike4613/BeatSaber-IPA-Reloaded/blob/0ba9d3c46d55d5ae58d8887ac27b303379298b53/IPA.Loader/Logging/Printers/ColoredConsolePrinter.cs/#L17">View Source</a>
  141. </span>
  142. <a id="IPA_Logging_Printers_ColoredConsolePrinter_Filter_" data-uid="IPA.Logging.Printers.ColoredConsolePrinter.Filter*"></a>
  143. <h4 id="IPA_Logging_Printers_ColoredConsolePrinter_Filter" data-uid="IPA.Logging.Printers.ColoredConsolePrinter.Filter">Filter</h4>
  144. <div class="markdown level1 summary"><p>A filter for this specific printer.</p>
  145. </div>
  146. <div class="markdown level1 conceptual"></div>
  147. <h5 class="decalaration">Declaration</h5>
  148. <div class="codewrapper">
  149. <pre><code class="lang-csharp hljs">public override Logger.LogLevel Filter { get; set; }</code></pre>
  150. </div>
  151. <h5 class="propertyValue">Property Value</h5>
  152. <table class="table table-bordered table-striped table-condensed">
  153. <thead>
  154. <tr>
  155. <th>Type</th>
  156. <th>Description</th>
  157. </tr>
  158. </thead>
  159. <tbody>
  160. <tr>
  161. <td><a class="xref" href="IPA.Logging.Logger.LogLevel.html">Logger.LogLevel</a></td>
  162. <td><p>the filter to apply to this printer</p>
  163. </td>
  164. </tr>
  165. </tbody>
  166. </table>
  167. <h5 class="overrides">Overrides</h5>
  168. <div><a class="xref" href="IPA.Logging.LogPrinter.html#IPA_Logging_LogPrinter_Filter">LogPrinter.Filter</a></div>
  169. <h3 id="methods">Methods
  170. </h3>
  171. <span class="small pull-right mobile-hide">
  172. <span class="divider">|</span>
  173. <a href="https://github.com/nike4613/BeatSaber-IPA-Reloaded/new/master/docs/override/new?filename=IPA_Logging_Printers_ColoredConsolePrinter_Print_IPA_Logging_Logger_Level_DateTime_System_String_System_String_.md&amp;value=---%0Auid%3A%20IPA.Logging.Printers.ColoredConsolePrinter.Print(IPA.Logging.Logger.Level%2CDateTime%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>
  174. </span>
  175. <span class="small pull-right mobile-hide">
  176. <a href="https://github.com/nike4613/BeatSaber-IPA-Reloaded/blob/0ba9d3c46d55d5ae58d8887ac27b303379298b53/IPA.Loader/Logging/Printers/ColoredConsolePrinter.cs/#L32">View Source</a>
  177. </span>
  178. <a id="IPA_Logging_Printers_ColoredConsolePrinter_Print_" data-uid="IPA.Logging.Printers.ColoredConsolePrinter.Print*"></a>
  179. <h4 id="IPA_Logging_Printers_ColoredConsolePrinter_Print_IPA_Logging_Logger_Level_DateTime_System_String_System_String_" data-uid="IPA.Logging.Printers.ColoredConsolePrinter.Print(IPA.Logging.Logger.Level,DateTime,System.String,System.String)">Print(Logger.Level, DateTime, String, String)</h4>
  180. <div class="markdown level1 summary"><p>Prints an entry to the console window.</p>
  181. </div>
  182. <div class="markdown level1 conceptual"></div>
  183. <h5 class="decalaration">Declaration</h5>
  184. <div class="codewrapper">
  185. <pre><code class="lang-csharp hljs">public override void Print(Logger.Level level, DateTime time, string logName, string message)</code></pre>
  186. </div>
  187. <h5 class="parameters">Parameters</h5>
  188. <table class="table table-bordered table-striped table-condensed">
  189. <thead>
  190. <tr>
  191. <th>Type</th>
  192. <th>Name</th>
  193. <th>Description</th>
  194. </tr>
  195. </thead>
  196. <tbody>
  197. <tr>
  198. <td><a class="xref" href="IPA.Logging.Logger.Level.html">Logger.Level</a></td>
  199. <td><span class="parametername">level</span></td>
  200. <td><p>the <a class="xref" href="IPA.Logging.Logger.Level.html">Logger.Level</a> of the message</p>
  201. </td>
  202. </tr>
  203. <tr>
  204. <td><span class="xref">DateTime</span></td>
  205. <td><span class="parametername">time</span></td>
  206. <td><p>the <see cref="!:DateTime"></see> the message was recorded at</p>
  207. </td>
  208. </tr>
  209. <tr>
  210. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.string">String</a></td>
  211. <td><span class="parametername">logName</span></td>
  212. <td><p>the name of the log that sent the message</p>
  213. </td>
  214. </tr>
  215. <tr>
  216. <td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.string">String</a></td>
  217. <td><span class="parametername">message</span></td>
  218. <td><p>the message to print</p>
  219. </td>
  220. </tr>
  221. </tbody>
  222. </table>
  223. <h5 class="overrides">Overrides</h5>
  224. <div><a class="xref" href="IPA.Logging.LogPrinter.html#IPA_Logging_LogPrinter_Print_IPA_Logging_Logger_Level_DateTime_System_String_System_String_">LogPrinter.Print(Logger.Level, DateTime, String, String)</a></div>
  225. <h3 id="extensionmethods">Extension Methods</h3>
  226. <div>
  227. <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>
  228. </div>
  229. <div>
  230. <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>
  231. </div>
  232. <div>
  233. <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>
  234. </div>
  235. <div>
  236. <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>
  237. </div>
  238. <div>
  239. <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>
  240. </div>
  241. </article>
  242. </div>
  243. <div class="hidden-sm col-md-2" role="complementary">
  244. <div class="sideaffix">
  245. <div class="contribution">
  246. <ul class="nav">
  247. <li>
  248. <a href="https://github.com/nike4613/BeatSaber-IPA-Reloaded/new/master/docs/override/new?filename=IPA_Logging_Printers_ColoredConsolePrinter.md&amp;value=---%0Auid%3A%20IPA.Logging.Printers.ColoredConsolePrinter%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>
  249. </li>
  250. <li>
  251. <a href="https://github.com/nike4613/BeatSaber-IPA-Reloaded/blob/0ba9d3c46d55d5ae58d8887ac27b303379298b53/IPA.Loader/Logging/Printers/ColoredConsolePrinter.cs/#L9" class="contribution-link">View Source</a>
  252. </li>
  253. </ul>
  254. </div>
  255. <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
  256. <h5>In This Article</h5>
  257. <div></div>
  258. </nav>
  259. </div>
  260. </div>
  261. </div>
  262. </div>
  263. <footer>
  264. <div class="grad-bottom"></div>
  265. <div class="footer">
  266. <div class="container">
  267. <span class="pull-right">
  268. <a href="#top">Back to top</a>
  269. </span>
  270. <span>Generated by <strong>DocFX</strong></span>
  271. </div>
  272. </div>
  273. </footer>
  274. </div>
  275. <script type="text/javascript" src="../styles/docfx.vendor.js"></script>
  276. <script type="text/javascript" src="../styles/docfx.js"></script>
  277. <script type="text/javascript" src="../styles/main.js"></script>
  278. </body>
  279. </html>