Grpc.Core.Logging.TextWriterLogger.html 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608
  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 TextWriterLogger
  8. | gRPC C# </title>
  9. <meta name="viewport" content="width=device-width">
  10. <meta name="title" content="Class TextWriterLogger
  11. | gRPC C# ">
  12. <meta name="generator" content="docfx 2.36.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. <meta property="docfx:navrel" content="../toc.html">
  18. <meta property="docfx:tocrel" content="toc.html">
  19. <meta property="docfx:rel" content="../">
  20. </head>
  21. <body data-spy="scroll" data-target="#affix" data-offset="120">
  22. <div id="wrapper">
  23. <header>
  24. <nav id="autocollapse" class="navbar navbar-inverse ng-scope" role="navigation">
  25. <div class="container">
  26. <div class="navbar-header">
  27. <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar">
  28. <span class="sr-only">Toggle navigation</span>
  29. <span class="icon-bar"></span>
  30. <span class="icon-bar"></span>
  31. <span class="icon-bar"></span>
  32. </button>
  33. <a class="navbar-brand" href="../index.html">
  34. <img id="logo" class="svg" src="../logo.svg" alt="">
  35. </a>
  36. </div>
  37. <div class="collapse navbar-collapse" id="navbar">
  38. <form class="navbar-form navbar-right" role="search" id="search">
  39. <div class="form-group">
  40. <input type="text" class="form-control" id="search-query" placeholder="Search" autocomplete="off">
  41. </div>
  42. </form>
  43. </div>
  44. </div>
  45. </nav>
  46. <div class="subnav navbar navbar-default">
  47. <div class="container hide-when-search" id="breadcrumb">
  48. <ul class="breadcrumb">
  49. <li></li>
  50. </ul>
  51. </div>
  52. </div>
  53. </header>
  54. <div class="container body-content">
  55. <div id="search-results">
  56. <div class="search-list"></div>
  57. <div class="sr-items">
  58. <p><i class="glyphicon glyphicon-refresh index-loading"></i></p>
  59. </div>
  60. <ul id="pagination"></ul>
  61. </div>
  62. </div>
  63. <div role="main" class="container body-content hide-when-search">
  64. <div class="sidenav hide-when-search">
  65. <a class="btn toc-toggle collapse" data-toggle="collapse" href="#sidetoggle" aria-expanded="false" aria-controls="sidetoggle">Show / Hide Table of Contents</a>
  66. <div class="sidetoggle collapse" id="sidetoggle">
  67. <div id="sidetoc"></div>
  68. </div>
  69. </div>
  70. <div class="article row grid-right">
  71. <div class="col-md-10">
  72. <article class="content wrap" id="_content" data-uid="Grpc.Core.Logging.TextWriterLogger">
  73. <h1 id="Grpc_Core_Logging_TextWriterLogger" data-uid="Grpc.Core.Logging.TextWriterLogger" class="text-break">Class TextWriterLogger
  74. </h1>
  75. <div class="markdown level0 summary"><p>Logger that logs to an arbitrary <code>System.IO.TextWriter</code>.</p>
  76. </div>
  77. <div class="markdown level0 conceptual"></div>
  78. <div class="inheritance">
  79. <h5>Inheritance</h5>
  80. <div class="level0"><span class="xref">System.Object</span></div>
  81. <div class="level1"><span class="xref">TextWriterLogger</span></div>
  82. <div class="level2"><a class="xref" href="Grpc.Core.Logging.ConsoleLogger.html">ConsoleLogger</a></div>
  83. </div>
  84. <div classs="implements">
  85. <h5>Implements</h5>
  86. <div><a class="xref" href="Grpc.Core.Logging.ILogger.html">ILogger</a></div>
  87. </div>
  88. <div class="inheritedMembers">
  89. <h5>Inherited Members</h5>
  90. <div>
  91. <span class="xref">System.Object.Equals(System.Object)</span>
  92. </div>
  93. <div>
  94. <span class="xref">System.Object.Equals(System.Object, System.Object)</span>
  95. </div>
  96. <div>
  97. <span class="xref">System.Object.GetHashCode()</span>
  98. </div>
  99. <div>
  100. <span class="xref">System.Object.GetType()</span>
  101. </div>
  102. <div>
  103. <span class="xref">System.Object.MemberwiseClone()</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.ToString()</span>
  110. </div>
  111. </div>
  112. <h6><strong>Namespace</strong>: <a class="xref" href="Grpc.Core.Logging.html">Grpc.Core.Logging</a></h6>
  113. <h6><strong>Assembly</strong>: Grpc.Core.dll</h6>
  114. <h5 id="Grpc_Core_Logging_TextWriterLogger_syntax">Syntax</h5>
  115. <div class="codewrapper">
  116. <pre><code class="lang-csharp hljs">public class TextWriterLogger : ILogger</code></pre>
  117. </div>
  118. <h3 id="constructors">Constructors
  119. </h3>
  120. <a id="Grpc_Core_Logging_TextWriterLogger__ctor_" data-uid="Grpc.Core.Logging.TextWriterLogger.#ctor*"></a>
  121. <h4 id="Grpc_Core_Logging_TextWriterLogger__ctor_System_Func_System_IO_TextWriter__" data-uid="Grpc.Core.Logging.TextWriterLogger.#ctor(System.Func{System.IO.TextWriter})">TextWriterLogger(Func&lt;TextWriter&gt;)</h4>
  122. <div class="markdown level1 summary"><p>Creates a console logger not associated to any specific type and writes to a <code>System.IO.TextWriter</code> obtained from given provider.
  123. User is responsible for providing an instance of TextWriter that is thread-safe.</p>
  124. </div>
  125. <div class="markdown level1 conceptual"></div>
  126. <h5 class="decalaration">Declaration</h5>
  127. <div class="codewrapper">
  128. <pre><code class="lang-csharp hljs">public TextWriterLogger(Func&lt;TextWriter&gt; textWriterProvider)</code></pre>
  129. </div>
  130. <h5 class="parameters">Parameters</h5>
  131. <table class="table table-bordered table-striped table-condensed">
  132. <thead>
  133. <tr>
  134. <th>Type</th>
  135. <th>Name</th>
  136. <th>Description</th>
  137. </tr>
  138. </thead>
  139. <tbody>
  140. <tr>
  141. <td><span class="xref">System.Func</span>&lt;<span class="xref">System.IO.TextWriter</span>&gt;</td>
  142. <td><span class="parametername">textWriterProvider</span></td>
  143. <td></td>
  144. </tr>
  145. </tbody>
  146. </table>
  147. <a id="Grpc_Core_Logging_TextWriterLogger__ctor_" data-uid="Grpc.Core.Logging.TextWriterLogger.#ctor*"></a>
  148. <h4 id="Grpc_Core_Logging_TextWriterLogger__ctor_System_Func_System_IO_TextWriter__System_Type_" data-uid="Grpc.Core.Logging.TextWriterLogger.#ctor(System.Func{System.IO.TextWriter},System.Type)">TextWriterLogger(Func&lt;TextWriter&gt;, Type)</h4>
  149. <div class="markdown level1 summary"><p>Creates a console logger that logs messsage specific for given type.</p>
  150. </div>
  151. <div class="markdown level1 conceptual"></div>
  152. <h5 class="decalaration">Declaration</h5>
  153. <div class="codewrapper">
  154. <pre><code class="lang-csharp hljs">protected TextWriterLogger(Func&lt;TextWriter&gt; textWriterProvider, Type forType)</code></pre>
  155. </div>
  156. <h5 class="parameters">Parameters</h5>
  157. <table class="table table-bordered table-striped table-condensed">
  158. <thead>
  159. <tr>
  160. <th>Type</th>
  161. <th>Name</th>
  162. <th>Description</th>
  163. </tr>
  164. </thead>
  165. <tbody>
  166. <tr>
  167. <td><span class="xref">System.Func</span>&lt;<span class="xref">System.IO.TextWriter</span>&gt;</td>
  168. <td><span class="parametername">textWriterProvider</span></td>
  169. <td></td>
  170. </tr>
  171. <tr>
  172. <td><span class="xref">System.Type</span></td>
  173. <td><span class="parametername">forType</span></td>
  174. <td></td>
  175. </tr>
  176. </tbody>
  177. </table>
  178. <a id="Grpc_Core_Logging_TextWriterLogger__ctor_" data-uid="Grpc.Core.Logging.TextWriterLogger.#ctor*"></a>
  179. <h4 id="Grpc_Core_Logging_TextWriterLogger__ctor_System_IO_TextWriter_" data-uid="Grpc.Core.Logging.TextWriterLogger.#ctor(System.IO.TextWriter)">TextWriterLogger(TextWriter)</h4>
  180. <div class="markdown level1 summary"><p>Creates a console logger not associated to any specific type and writes to given <code>System.IO.TextWriter</code>.
  181. User is responsible for providing an instance of TextWriter that is thread-safe.</p>
  182. </div>
  183. <div class="markdown level1 conceptual"></div>
  184. <h5 class="decalaration">Declaration</h5>
  185. <div class="codewrapper">
  186. <pre><code class="lang-csharp hljs">public TextWriterLogger(TextWriter textWriter)</code></pre>
  187. </div>
  188. <h5 class="parameters">Parameters</h5>
  189. <table class="table table-bordered table-striped table-condensed">
  190. <thead>
  191. <tr>
  192. <th>Type</th>
  193. <th>Name</th>
  194. <th>Description</th>
  195. </tr>
  196. </thead>
  197. <tbody>
  198. <tr>
  199. <td><span class="xref">System.IO.TextWriter</span></td>
  200. <td><span class="parametername">textWriter</span></td>
  201. <td></td>
  202. </tr>
  203. </tbody>
  204. </table>
  205. <h3 id="properties">Properties
  206. </h3>
  207. <a id="Grpc_Core_Logging_TextWriterLogger_AssociatedType_" data-uid="Grpc.Core.Logging.TextWriterLogger.AssociatedType*"></a>
  208. <h4 id="Grpc_Core_Logging_TextWriterLogger_AssociatedType" data-uid="Grpc.Core.Logging.TextWriterLogger.AssociatedType">AssociatedType</h4>
  209. <div class="markdown level1 summary"><p>Gets the type associated with this logger.</p>
  210. </div>
  211. <div class="markdown level1 conceptual"></div>
  212. <h5 class="decalaration">Declaration</h5>
  213. <div class="codewrapper">
  214. <pre><code class="lang-csharp hljs">protected Type AssociatedType { get; }</code></pre>
  215. </div>
  216. <h5 class="propertyValue">Property Value</h5>
  217. <table class="table table-bordered table-striped table-condensed">
  218. <thead>
  219. <tr>
  220. <th>Type</th>
  221. <th>Description</th>
  222. </tr>
  223. </thead>
  224. <tbody>
  225. <tr>
  226. <td><span class="xref">System.Type</span></td>
  227. <td></td>
  228. </tr>
  229. </tbody>
  230. </table>
  231. <h3 id="methods">Methods
  232. </h3>
  233. <a id="Grpc_Core_Logging_TextWriterLogger_Debug_" data-uid="Grpc.Core.Logging.TextWriterLogger.Debug*"></a>
  234. <h4 id="Grpc_Core_Logging_TextWriterLogger_Debug_System_String_" data-uid="Grpc.Core.Logging.TextWriterLogger.Debug(System.String)">Debug(String)</h4>
  235. <div class="markdown level1 summary"><p>Logs a message with severity Debug.</p>
  236. </div>
  237. <div class="markdown level1 conceptual"></div>
  238. <h5 class="decalaration">Declaration</h5>
  239. <div class="codewrapper">
  240. <pre><code class="lang-csharp hljs">public void Debug(string message)</code></pre>
  241. </div>
  242. <h5 class="parameters">Parameters</h5>
  243. <table class="table table-bordered table-striped table-condensed">
  244. <thead>
  245. <tr>
  246. <th>Type</th>
  247. <th>Name</th>
  248. <th>Description</th>
  249. </tr>
  250. </thead>
  251. <tbody>
  252. <tr>
  253. <td><span class="xref">System.String</span></td>
  254. <td><span class="parametername">message</span></td>
  255. <td></td>
  256. </tr>
  257. </tbody>
  258. </table>
  259. <a id="Grpc_Core_Logging_TextWriterLogger_Debug_" data-uid="Grpc.Core.Logging.TextWriterLogger.Debug*"></a>
  260. <h4 id="Grpc_Core_Logging_TextWriterLogger_Debug_System_String_System_Object___" data-uid="Grpc.Core.Logging.TextWriterLogger.Debug(System.String,System.Object[])">Debug(String, Object[])</h4>
  261. <div class="markdown level1 summary"><p>Logs a formatted message with severity Debug.</p>
  262. </div>
  263. <div class="markdown level1 conceptual"></div>
  264. <h5 class="decalaration">Declaration</h5>
  265. <div class="codewrapper">
  266. <pre><code class="lang-csharp hljs">public void Debug(string format, params object[] formatArgs)</code></pre>
  267. </div>
  268. <h5 class="parameters">Parameters</h5>
  269. <table class="table table-bordered table-striped table-condensed">
  270. <thead>
  271. <tr>
  272. <th>Type</th>
  273. <th>Name</th>
  274. <th>Description</th>
  275. </tr>
  276. </thead>
  277. <tbody>
  278. <tr>
  279. <td><span class="xref">System.String</span></td>
  280. <td><span class="parametername">format</span></td>
  281. <td></td>
  282. </tr>
  283. <tr>
  284. <td><span class="xref">System.Object</span>[]</td>
  285. <td><span class="parametername">formatArgs</span></td>
  286. <td></td>
  287. </tr>
  288. </tbody>
  289. </table>
  290. <a id="Grpc_Core_Logging_TextWriterLogger_Error_" data-uid="Grpc.Core.Logging.TextWriterLogger.Error*"></a>
  291. <h4 id="Grpc_Core_Logging_TextWriterLogger_Error_System_Exception_System_String_" data-uid="Grpc.Core.Logging.TextWriterLogger.Error(System.Exception,System.String)">Error(Exception, String)</h4>
  292. <div class="markdown level1 summary"><p>Logs a message and an associated exception with severity Error.</p>
  293. </div>
  294. <div class="markdown level1 conceptual"></div>
  295. <h5 class="decalaration">Declaration</h5>
  296. <div class="codewrapper">
  297. <pre><code class="lang-csharp hljs">public void Error(Exception exception, string message)</code></pre>
  298. </div>
  299. <h5 class="parameters">Parameters</h5>
  300. <table class="table table-bordered table-striped table-condensed">
  301. <thead>
  302. <tr>
  303. <th>Type</th>
  304. <th>Name</th>
  305. <th>Description</th>
  306. </tr>
  307. </thead>
  308. <tbody>
  309. <tr>
  310. <td><span class="xref">System.Exception</span></td>
  311. <td><span class="parametername">exception</span></td>
  312. <td></td>
  313. </tr>
  314. <tr>
  315. <td><span class="xref">System.String</span></td>
  316. <td><span class="parametername">message</span></td>
  317. <td></td>
  318. </tr>
  319. </tbody>
  320. </table>
  321. <a id="Grpc_Core_Logging_TextWriterLogger_Error_" data-uid="Grpc.Core.Logging.TextWriterLogger.Error*"></a>
  322. <h4 id="Grpc_Core_Logging_TextWriterLogger_Error_System_String_" data-uid="Grpc.Core.Logging.TextWriterLogger.Error(System.String)">Error(String)</h4>
  323. <div class="markdown level1 summary"><p>Logs a message with severity Error.</p>
  324. </div>
  325. <div class="markdown level1 conceptual"></div>
  326. <h5 class="decalaration">Declaration</h5>
  327. <div class="codewrapper">
  328. <pre><code class="lang-csharp hljs">public void Error(string message)</code></pre>
  329. </div>
  330. <h5 class="parameters">Parameters</h5>
  331. <table class="table table-bordered table-striped table-condensed">
  332. <thead>
  333. <tr>
  334. <th>Type</th>
  335. <th>Name</th>
  336. <th>Description</th>
  337. </tr>
  338. </thead>
  339. <tbody>
  340. <tr>
  341. <td><span class="xref">System.String</span></td>
  342. <td><span class="parametername">message</span></td>
  343. <td></td>
  344. </tr>
  345. </tbody>
  346. </table>
  347. <a id="Grpc_Core_Logging_TextWriterLogger_Error_" data-uid="Grpc.Core.Logging.TextWriterLogger.Error*"></a>
  348. <h4 id="Grpc_Core_Logging_TextWriterLogger_Error_System_String_System_Object___" data-uid="Grpc.Core.Logging.TextWriterLogger.Error(System.String,System.Object[])">Error(String, Object[])</h4>
  349. <div class="markdown level1 summary"><p>Logs a formatted message with severity Error.</p>
  350. </div>
  351. <div class="markdown level1 conceptual"></div>
  352. <h5 class="decalaration">Declaration</h5>
  353. <div class="codewrapper">
  354. <pre><code class="lang-csharp hljs">public void Error(string format, params object[] formatArgs)</code></pre>
  355. </div>
  356. <h5 class="parameters">Parameters</h5>
  357. <table class="table table-bordered table-striped table-condensed">
  358. <thead>
  359. <tr>
  360. <th>Type</th>
  361. <th>Name</th>
  362. <th>Description</th>
  363. </tr>
  364. </thead>
  365. <tbody>
  366. <tr>
  367. <td><span class="xref">System.String</span></td>
  368. <td><span class="parametername">format</span></td>
  369. <td></td>
  370. </tr>
  371. <tr>
  372. <td><span class="xref">System.Object</span>[]</td>
  373. <td><span class="parametername">formatArgs</span></td>
  374. <td></td>
  375. </tr>
  376. </tbody>
  377. </table>
  378. <a id="Grpc_Core_Logging_TextWriterLogger_ForType_" data-uid="Grpc.Core.Logging.TextWriterLogger.ForType*"></a>
  379. <h4 id="Grpc_Core_Logging_TextWriterLogger_ForType__1" data-uid="Grpc.Core.Logging.TextWriterLogger.ForType``1">ForType&lt;T&gt;()</h4>
  380. <div class="markdown level1 summary"><p>Returns a logger associated with the specified type.</p>
  381. </div>
  382. <div class="markdown level1 conceptual"></div>
  383. <h5 class="decalaration">Declaration</h5>
  384. <div class="codewrapper">
  385. <pre><code class="lang-csharp hljs">public virtual ILogger ForType&lt;T&gt;()</code></pre>
  386. </div>
  387. <h5 class="returns">Returns</h5>
  388. <table class="table table-bordered table-striped table-condensed">
  389. <thead>
  390. <tr>
  391. <th>Type</th>
  392. <th>Description</th>
  393. </tr>
  394. </thead>
  395. <tbody>
  396. <tr>
  397. <td><a class="xref" href="Grpc.Core.Logging.ILogger.html">ILogger</a></td>
  398. <td></td>
  399. </tr>
  400. </tbody>
  401. </table>
  402. <h5 class="typeParameters">Type Parameters</h5>
  403. <table class="table table-bordered table-striped table-condensed">
  404. <thead>
  405. <tr>
  406. <th>Name</th>
  407. <th>Description</th>
  408. </tr>
  409. </thead>
  410. <tbody>
  411. <tr>
  412. <td><span class="parametername">T</span></td>
  413. <td></td>
  414. </tr>
  415. </tbody>
  416. </table>
  417. <a id="Grpc_Core_Logging_TextWriterLogger_Info_" data-uid="Grpc.Core.Logging.TextWriterLogger.Info*"></a>
  418. <h4 id="Grpc_Core_Logging_TextWriterLogger_Info_System_String_" data-uid="Grpc.Core.Logging.TextWriterLogger.Info(System.String)">Info(String)</h4>
  419. <div class="markdown level1 summary"><p>Logs a message with severity Info.</p>
  420. </div>
  421. <div class="markdown level1 conceptual"></div>
  422. <h5 class="decalaration">Declaration</h5>
  423. <div class="codewrapper">
  424. <pre><code class="lang-csharp hljs">public void Info(string message)</code></pre>
  425. </div>
  426. <h5 class="parameters">Parameters</h5>
  427. <table class="table table-bordered table-striped table-condensed">
  428. <thead>
  429. <tr>
  430. <th>Type</th>
  431. <th>Name</th>
  432. <th>Description</th>
  433. </tr>
  434. </thead>
  435. <tbody>
  436. <tr>
  437. <td><span class="xref">System.String</span></td>
  438. <td><span class="parametername">message</span></td>
  439. <td></td>
  440. </tr>
  441. </tbody>
  442. </table>
  443. <a id="Grpc_Core_Logging_TextWriterLogger_Info_" data-uid="Grpc.Core.Logging.TextWriterLogger.Info*"></a>
  444. <h4 id="Grpc_Core_Logging_TextWriterLogger_Info_System_String_System_Object___" data-uid="Grpc.Core.Logging.TextWriterLogger.Info(System.String,System.Object[])">Info(String, Object[])</h4>
  445. <div class="markdown level1 summary"><p>Logs a formatted message with severity Info.</p>
  446. </div>
  447. <div class="markdown level1 conceptual"></div>
  448. <h5 class="decalaration">Declaration</h5>
  449. <div class="codewrapper">
  450. <pre><code class="lang-csharp hljs">public void Info(string format, params object[] formatArgs)</code></pre>
  451. </div>
  452. <h5 class="parameters">Parameters</h5>
  453. <table class="table table-bordered table-striped table-condensed">
  454. <thead>
  455. <tr>
  456. <th>Type</th>
  457. <th>Name</th>
  458. <th>Description</th>
  459. </tr>
  460. </thead>
  461. <tbody>
  462. <tr>
  463. <td><span class="xref">System.String</span></td>
  464. <td><span class="parametername">format</span></td>
  465. <td></td>
  466. </tr>
  467. <tr>
  468. <td><span class="xref">System.Object</span>[]</td>
  469. <td><span class="parametername">formatArgs</span></td>
  470. <td></td>
  471. </tr>
  472. </tbody>
  473. </table>
  474. <a id="Grpc_Core_Logging_TextWriterLogger_Warning_" data-uid="Grpc.Core.Logging.TextWriterLogger.Warning*"></a>
  475. <h4 id="Grpc_Core_Logging_TextWriterLogger_Warning_System_Exception_System_String_" data-uid="Grpc.Core.Logging.TextWriterLogger.Warning(System.Exception,System.String)">Warning(Exception, String)</h4>
  476. <div class="markdown level1 summary"><p>Logs a message and an associated exception with severity Warning.</p>
  477. </div>
  478. <div class="markdown level1 conceptual"></div>
  479. <h5 class="decalaration">Declaration</h5>
  480. <div class="codewrapper">
  481. <pre><code class="lang-csharp hljs">public void Warning(Exception exception, string message)</code></pre>
  482. </div>
  483. <h5 class="parameters">Parameters</h5>
  484. <table class="table table-bordered table-striped table-condensed">
  485. <thead>
  486. <tr>
  487. <th>Type</th>
  488. <th>Name</th>
  489. <th>Description</th>
  490. </tr>
  491. </thead>
  492. <tbody>
  493. <tr>
  494. <td><span class="xref">System.Exception</span></td>
  495. <td><span class="parametername">exception</span></td>
  496. <td></td>
  497. </tr>
  498. <tr>
  499. <td><span class="xref">System.String</span></td>
  500. <td><span class="parametername">message</span></td>
  501. <td></td>
  502. </tr>
  503. </tbody>
  504. </table>
  505. <a id="Grpc_Core_Logging_TextWriterLogger_Warning_" data-uid="Grpc.Core.Logging.TextWriterLogger.Warning*"></a>
  506. <h4 id="Grpc_Core_Logging_TextWriterLogger_Warning_System_String_" data-uid="Grpc.Core.Logging.TextWriterLogger.Warning(System.String)">Warning(String)</h4>
  507. <div class="markdown level1 summary"><p>Logs a message with severity Warning.</p>
  508. </div>
  509. <div class="markdown level1 conceptual"></div>
  510. <h5 class="decalaration">Declaration</h5>
  511. <div class="codewrapper">
  512. <pre><code class="lang-csharp hljs">public void Warning(string message)</code></pre>
  513. </div>
  514. <h5 class="parameters">Parameters</h5>
  515. <table class="table table-bordered table-striped table-condensed">
  516. <thead>
  517. <tr>
  518. <th>Type</th>
  519. <th>Name</th>
  520. <th>Description</th>
  521. </tr>
  522. </thead>
  523. <tbody>
  524. <tr>
  525. <td><span class="xref">System.String</span></td>
  526. <td><span class="parametername">message</span></td>
  527. <td></td>
  528. </tr>
  529. </tbody>
  530. </table>
  531. <a id="Grpc_Core_Logging_TextWriterLogger_Warning_" data-uid="Grpc.Core.Logging.TextWriterLogger.Warning*"></a>
  532. <h4 id="Grpc_Core_Logging_TextWriterLogger_Warning_System_String_System_Object___" data-uid="Grpc.Core.Logging.TextWriterLogger.Warning(System.String,System.Object[])">Warning(String, Object[])</h4>
  533. <div class="markdown level1 summary"><p>Logs a formatted message with severity Warning.</p>
  534. </div>
  535. <div class="markdown level1 conceptual"></div>
  536. <h5 class="decalaration">Declaration</h5>
  537. <div class="codewrapper">
  538. <pre><code class="lang-csharp hljs">public void Warning(string format, params object[] formatArgs)</code></pre>
  539. </div>
  540. <h5 class="parameters">Parameters</h5>
  541. <table class="table table-bordered table-striped table-condensed">
  542. <thead>
  543. <tr>
  544. <th>Type</th>
  545. <th>Name</th>
  546. <th>Description</th>
  547. </tr>
  548. </thead>
  549. <tbody>
  550. <tr>
  551. <td><span class="xref">System.String</span></td>
  552. <td><span class="parametername">format</span></td>
  553. <td></td>
  554. </tr>
  555. <tr>
  556. <td><span class="xref">System.Object</span>[]</td>
  557. <td><span class="parametername">formatArgs</span></td>
  558. <td></td>
  559. </tr>
  560. </tbody>
  561. </table>
  562. <h3 id="implements">Implements</h3>
  563. <div>
  564. <a class="xref" href="Grpc.Core.Logging.ILogger.html">ILogger</a>
  565. </div>
  566. </article>
  567. </div>
  568. <div class="hidden-sm col-md-2" role="complementary">
  569. <div class="sideaffix">
  570. <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
  571. <!-- <p><a class="back-to-top" href="#top">Back to top</a><p> -->
  572. </nav>
  573. </div>
  574. </div>
  575. </div>
  576. </div>
  577. <footer>
  578. <div class="grad-bottom"></div>
  579. <div class="footer">
  580. <div class="container">
  581. <span class="pull-right">
  582. <a href="#top">Back to top</a>
  583. </span>
  584. <span>Generated by <strong>DocFX</strong></span>
  585. </div>
  586. </div>
  587. </footer>
  588. </div>
  589. <script type="text/javascript" src="../styles/docfx.vendor.js"></script>
  590. <script type="text/javascript" src="../styles/docfx.js"></script>
  591. <script type="text/javascript" src="../styles/main.js"></script>
  592. </body>
  593. </html>