Grpc.Core.Logging.TextWriterLogger.html 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619
  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.23.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. <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">
  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"></div>
  58. <ul id="pagination"></ul>
  59. </div>
  60. </div>
  61. <div role="main" class="container body-content hide-when-search">
  62. <div class="sidenav hide-when-search">
  63. <a class="btn toc-toggle collapse" data-toggle="collapse" href="#sidetoggle" aria-expanded="false" aria-controls="sidetoggle">Show / Hide Table of Contents</a>
  64. <div class="sidetoggle collapse" id="sidetoggle">
  65. <div id="sidetoc"></div>
  66. </div>
  67. </div>
  68. <div class="article row grid-right">
  69. <div class="col-md-10">
  70. <article class="content wrap" id="_content" data-uid="Grpc.Core.Logging.TextWriterLogger">
  71. <h1 id="Grpc_Core_Logging_TextWriterLogger" data-uid="Grpc.Core.Logging.TextWriterLogger" class="text-break">Class TextWriterLogger
  72. </h1>
  73. <div class="markdown level0 summary"><p>Logger that logs to an arbitrary <code>System.IO.TextWriter</code>.</p>
  74. </div>
  75. <div class="markdown level0 conceptual"></div>
  76. <div class="inheritance">
  77. <h5>Inheritance</h5>
  78. <div class="level0"><span class="xref">System.Object</span></div>
  79. <div class="level1"><span class="xref">TextWriterLogger</span></div>
  80. </div>
  81. <div class="level2"><a class="xref" href="Grpc.Core.Logging.ConsoleLogger.html">ConsoleLogger</a></div>
  82. <div class="inheritedMembers">
  83. <h5>Inherited Members</h5>
  84. <div>
  85. <span class="xref">System.Object.ToString()</span>
  86. </div>
  87. <div>
  88. <span class="xref">System.Object.Equals(System.Object)</span>
  89. </div>
  90. <div>
  91. <span class="xref">System.Object.Equals(System.Object, System.Object)</span>
  92. </div>
  93. <div>
  94. <span class="xref">System.Object.ReferenceEquals(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. <h6><strong>Namespace</strong>: <a class="xref" href="Grpc.Core.Logging.html">Grpc.Core.Logging</a></h6>
  107. <h6><strong>Assembly</strong>: Grpc.Core.dll</h6>
  108. <h5 id="Grpc_Core_Logging_TextWriterLogger_syntax">Syntax</h5>
  109. <div class="codewrapper">
  110. <pre><code class="lang-csharp hljs">public class TextWriterLogger : ILogger</code></pre>
  111. </div>
  112. <h3 id="constructors">Constructors
  113. </h3>
  114. <a id="Grpc_Core_Logging_TextWriterLogger__ctor_" data-uid="Grpc.Core.Logging.TextWriterLogger.#ctor*"></a>
  115. <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>
  116. <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.
  117. User is responsible for providing an instance of TextWriter that is thread-safe.</p>
  118. </div>
  119. <div class="markdown level1 conceptual"></div>
  120. <h5 class="decalaration">Declaration</h5>
  121. <div class="codewrapper">
  122. <pre><code class="lang-csharp hljs">public TextWriterLogger(Func&lt;TextWriter&gt; textWriterProvider)</code></pre>
  123. </div>
  124. <h5 class="parameters">Parameters</h5>
  125. <table class="table table-bordered table-striped table-condensed">
  126. <thead>
  127. <tr>
  128. <th>Type</th>
  129. <th>Name</th>
  130. <th>Description</th>
  131. </tr>
  132. </thead>
  133. <tbody>
  134. <tr>
  135. <td><span class="xref">System.Func</span>&lt;<span class="xref">System.IO.TextWriter</span>&gt;</td>
  136. <td><span class="parametername">textWriterProvider</span></td>
  137. <td></td>
  138. </tr>
  139. </tbody>
  140. </table>
  141. <a id="Grpc_Core_Logging_TextWriterLogger__ctor_" data-uid="Grpc.Core.Logging.TextWriterLogger.#ctor*"></a>
  142. <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>
  143. <div class="markdown level1 summary"><p>Creates a console logger that logs messsage specific for given type.</p>
  144. </div>
  145. <div class="markdown level1 conceptual"></div>
  146. <h5 class="decalaration">Declaration</h5>
  147. <div class="codewrapper">
  148. <pre><code class="lang-csharp hljs">protected TextWriterLogger(Func&lt;TextWriter&gt; textWriterProvider, Type forType)</code></pre>
  149. </div>
  150. <h5 class="parameters">Parameters</h5>
  151. <table class="table table-bordered table-striped table-condensed">
  152. <thead>
  153. <tr>
  154. <th>Type</th>
  155. <th>Name</th>
  156. <th>Description</th>
  157. </tr>
  158. </thead>
  159. <tbody>
  160. <tr>
  161. <td><span class="xref">System.Func</span>&lt;<span class="xref">System.IO.TextWriter</span>&gt;</td>
  162. <td><span class="parametername">textWriterProvider</span></td>
  163. <td></td>
  164. </tr>
  165. <tr>
  166. <td><span class="xref">System.Type</span></td>
  167. <td><span class="parametername">forType</span></td>
  168. <td></td>
  169. </tr>
  170. </tbody>
  171. </table>
  172. <a id="Grpc_Core_Logging_TextWriterLogger__ctor_" data-uid="Grpc.Core.Logging.TextWriterLogger.#ctor*"></a>
  173. <h4 id="Grpc_Core_Logging_TextWriterLogger__ctor_System_IO_TextWriter_" data-uid="Grpc.Core.Logging.TextWriterLogger.#ctor(System.IO.TextWriter)">TextWriterLogger(TextWriter)</h4>
  174. <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>.
  175. User is responsible for providing an instance of TextWriter that is thread-safe.</p>
  176. </div>
  177. <div class="markdown level1 conceptual"></div>
  178. <h5 class="decalaration">Declaration</h5>
  179. <div class="codewrapper">
  180. <pre><code class="lang-csharp hljs">public TextWriterLogger(TextWriter textWriter)</code></pre>
  181. </div>
  182. <h5 class="parameters">Parameters</h5>
  183. <table class="table table-bordered table-striped table-condensed">
  184. <thead>
  185. <tr>
  186. <th>Type</th>
  187. <th>Name</th>
  188. <th>Description</th>
  189. </tr>
  190. </thead>
  191. <tbody>
  192. <tr>
  193. <td><span class="xref">System.IO.TextWriter</span></td>
  194. <td><span class="parametername">textWriter</span></td>
  195. <td></td>
  196. </tr>
  197. </tbody>
  198. </table>
  199. <h3 id="properties">Properties
  200. </h3>
  201. <a id="Grpc_Core_Logging_TextWriterLogger_AssociatedType_" data-uid="Grpc.Core.Logging.TextWriterLogger.AssociatedType*"></a>
  202. <h4 id="Grpc_Core_Logging_TextWriterLogger_AssociatedType" data-uid="Grpc.Core.Logging.TextWriterLogger.AssociatedType">AssociatedType</h4>
  203. <div class="markdown level1 summary"><p>Gets the type associated with this logger.</p>
  204. </div>
  205. <div class="markdown level1 conceptual"></div>
  206. <h5 class="decalaration">Declaration</h5>
  207. <div class="codewrapper">
  208. <pre><code class="lang-csharp hljs">protected Type AssociatedType { get; }</code></pre>
  209. </div>
  210. <h5 class="propertyValue">Property Value</h5>
  211. <table class="table table-bordered table-striped table-condensed">
  212. <thead>
  213. <tr>
  214. <th>Type</th>
  215. <th>Description</th>
  216. </tr>
  217. </thead>
  218. <tbody>
  219. <tr>
  220. <td><span class="xref">System.Type</span></td>
  221. <td></td>
  222. </tr>
  223. </tbody>
  224. </table>
  225. <h3 id="methods">Methods
  226. </h3>
  227. <a id="Grpc_Core_Logging_TextWriterLogger_Debug_" data-uid="Grpc.Core.Logging.TextWriterLogger.Debug*"></a>
  228. <h4 id="Grpc_Core_Logging_TextWriterLogger_Debug_System_String_" data-uid="Grpc.Core.Logging.TextWriterLogger.Debug(System.String)">Debug(String)</h4>
  229. <div class="markdown level1 summary"><p>Logs a message with severity Debug.</p>
  230. </div>
  231. <div class="markdown level1 conceptual"></div>
  232. <h5 class="decalaration">Declaration</h5>
  233. <div class="codewrapper">
  234. <pre><code class="lang-csharp hljs">public void Debug(string message)</code></pre>
  235. </div>
  236. <h5 class="parameters">Parameters</h5>
  237. <table class="table table-bordered table-striped table-condensed">
  238. <thead>
  239. <tr>
  240. <th>Type</th>
  241. <th>Name</th>
  242. <th>Description</th>
  243. </tr>
  244. </thead>
  245. <tbody>
  246. <tr>
  247. <td><span class="xref">System.String</span></td>
  248. <td><span class="parametername">message</span></td>
  249. <td></td>
  250. </tr>
  251. </tbody>
  252. </table>
  253. <h5 class="implements">Implements</h5>
  254. <div><a class="xref" href="Grpc.Core.Logging.ILogger.html#Grpc_Core_Logging_ILogger_Debug_System_String_">ILogger.Debug(String)</a></div>
  255. <a id="Grpc_Core_Logging_TextWriterLogger_Debug_" data-uid="Grpc.Core.Logging.TextWriterLogger.Debug*"></a>
  256. <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>
  257. <div class="markdown level1 summary"><p>Logs a formatted message with severity Debug.</p>
  258. </div>
  259. <div class="markdown level1 conceptual"></div>
  260. <h5 class="decalaration">Declaration</h5>
  261. <div class="codewrapper">
  262. <pre><code class="lang-csharp hljs">public void Debug(string format, params object[] formatArgs)</code></pre>
  263. </div>
  264. <h5 class="parameters">Parameters</h5>
  265. <table class="table table-bordered table-striped table-condensed">
  266. <thead>
  267. <tr>
  268. <th>Type</th>
  269. <th>Name</th>
  270. <th>Description</th>
  271. </tr>
  272. </thead>
  273. <tbody>
  274. <tr>
  275. <td><span class="xref">System.String</span></td>
  276. <td><span class="parametername">format</span></td>
  277. <td></td>
  278. </tr>
  279. <tr>
  280. <td><span class="xref">System.Object</span>[]</td>
  281. <td><span class="parametername">formatArgs</span></td>
  282. <td></td>
  283. </tr>
  284. </tbody>
  285. </table>
  286. <h5 class="implements">Implements</h5>
  287. <div><a class="xref" href="Grpc.Core.Logging.ILogger.html#Grpc_Core_Logging_ILogger_Debug_System_String_System_Object___">ILogger.Debug(String, Object[])</a></div>
  288. <a id="Grpc_Core_Logging_TextWriterLogger_Error_" data-uid="Grpc.Core.Logging.TextWriterLogger.Error*"></a>
  289. <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>
  290. <div class="markdown level1 summary"><p>Logs a message and an associated exception with severity Error.</p>
  291. </div>
  292. <div class="markdown level1 conceptual"></div>
  293. <h5 class="decalaration">Declaration</h5>
  294. <div class="codewrapper">
  295. <pre><code class="lang-csharp hljs">public void Error(Exception exception, string message)</code></pre>
  296. </div>
  297. <h5 class="parameters">Parameters</h5>
  298. <table class="table table-bordered table-striped table-condensed">
  299. <thead>
  300. <tr>
  301. <th>Type</th>
  302. <th>Name</th>
  303. <th>Description</th>
  304. </tr>
  305. </thead>
  306. <tbody>
  307. <tr>
  308. <td><span class="xref">System.Exception</span></td>
  309. <td><span class="parametername">exception</span></td>
  310. <td></td>
  311. </tr>
  312. <tr>
  313. <td><span class="xref">System.String</span></td>
  314. <td><span class="parametername">message</span></td>
  315. <td></td>
  316. </tr>
  317. </tbody>
  318. </table>
  319. <h5 class="implements">Implements</h5>
  320. <div><a class="xref" href="Grpc.Core.Logging.ILogger.html#Grpc_Core_Logging_ILogger_Error_System_Exception_System_String_">ILogger.Error(Exception, String)</a></div>
  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. <h5 class="implements">Implements</h5>
  348. <div><a class="xref" href="Grpc.Core.Logging.ILogger.html#Grpc_Core_Logging_ILogger_Error_System_String_">ILogger.Error(String)</a></div>
  349. <a id="Grpc_Core_Logging_TextWriterLogger_Error_" data-uid="Grpc.Core.Logging.TextWriterLogger.Error*"></a>
  350. <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>
  351. <div class="markdown level1 summary"><p>Logs a formatted message with severity Error.</p>
  352. </div>
  353. <div class="markdown level1 conceptual"></div>
  354. <h5 class="decalaration">Declaration</h5>
  355. <div class="codewrapper">
  356. <pre><code class="lang-csharp hljs">public void Error(string format, params object[] formatArgs)</code></pre>
  357. </div>
  358. <h5 class="parameters">Parameters</h5>
  359. <table class="table table-bordered table-striped table-condensed">
  360. <thead>
  361. <tr>
  362. <th>Type</th>
  363. <th>Name</th>
  364. <th>Description</th>
  365. </tr>
  366. </thead>
  367. <tbody>
  368. <tr>
  369. <td><span class="xref">System.String</span></td>
  370. <td><span class="parametername">format</span></td>
  371. <td></td>
  372. </tr>
  373. <tr>
  374. <td><span class="xref">System.Object</span>[]</td>
  375. <td><span class="parametername">formatArgs</span></td>
  376. <td></td>
  377. </tr>
  378. </tbody>
  379. </table>
  380. <h5 class="implements">Implements</h5>
  381. <div><a class="xref" href="Grpc.Core.Logging.ILogger.html#Grpc_Core_Logging_ILogger_Error_System_String_System_Object___">ILogger.Error(String, Object[])</a></div>
  382. <a id="Grpc_Core_Logging_TextWriterLogger_ForType_" data-uid="Grpc.Core.Logging.TextWriterLogger.ForType*"></a>
  383. <h4 id="Grpc_Core_Logging_TextWriterLogger_ForType__1" data-uid="Grpc.Core.Logging.TextWriterLogger.ForType``1">ForType&lt;T&gt;()</h4>
  384. <div class="markdown level1 summary"><p>Returns a logger associated with the specified type.</p>
  385. </div>
  386. <div class="markdown level1 conceptual"></div>
  387. <h5 class="decalaration">Declaration</h5>
  388. <div class="codewrapper">
  389. <pre><code class="lang-csharp hljs">public virtual ILogger ForType&lt;T&gt;()</code></pre>
  390. </div>
  391. <h5 class="returns">Returns</h5>
  392. <table class="table table-bordered table-striped table-condensed">
  393. <thead>
  394. <tr>
  395. <th>Type</th>
  396. <th>Description</th>
  397. </tr>
  398. </thead>
  399. <tbody>
  400. <tr>
  401. <td><a class="xref" href="Grpc.Core.Logging.ILogger.html">ILogger</a></td>
  402. <td></td>
  403. </tr>
  404. </tbody>
  405. </table>
  406. <h5 class="typeParameters">Type Parameters</h5>
  407. <table class="table table-bordered table-striped table-condensed">
  408. <thead>
  409. <tr>
  410. <th>Name</th>
  411. <th>Description</th>
  412. </tr>
  413. </thead>
  414. <tbody>
  415. <tr>
  416. <td><span class="parametername">T</span></td>
  417. <td></td>
  418. </tr>
  419. </tbody>
  420. </table>
  421. <h5 class="implements">Implements</h5>
  422. <div><a class="xref" href="Grpc.Core.Logging.ILogger.html#Grpc_Core_Logging_ILogger_ForType__1">ILogger.ForType&lt;T&gt;()</a></div>
  423. <a id="Grpc_Core_Logging_TextWriterLogger_Info_" data-uid="Grpc.Core.Logging.TextWriterLogger.Info*"></a>
  424. <h4 id="Grpc_Core_Logging_TextWriterLogger_Info_System_String_" data-uid="Grpc.Core.Logging.TextWriterLogger.Info(System.String)">Info(String)</h4>
  425. <div class="markdown level1 summary"><p>Logs a message with severity Info.</p>
  426. </div>
  427. <div class="markdown level1 conceptual"></div>
  428. <h5 class="decalaration">Declaration</h5>
  429. <div class="codewrapper">
  430. <pre><code class="lang-csharp hljs">public void Info(string message)</code></pre>
  431. </div>
  432. <h5 class="parameters">Parameters</h5>
  433. <table class="table table-bordered table-striped table-condensed">
  434. <thead>
  435. <tr>
  436. <th>Type</th>
  437. <th>Name</th>
  438. <th>Description</th>
  439. </tr>
  440. </thead>
  441. <tbody>
  442. <tr>
  443. <td><span class="xref">System.String</span></td>
  444. <td><span class="parametername">message</span></td>
  445. <td></td>
  446. </tr>
  447. </tbody>
  448. </table>
  449. <h5 class="implements">Implements</h5>
  450. <div><a class="xref" href="Grpc.Core.Logging.ILogger.html#Grpc_Core_Logging_ILogger_Info_System_String_">ILogger.Info(String)</a></div>
  451. <a id="Grpc_Core_Logging_TextWriterLogger_Info_" data-uid="Grpc.Core.Logging.TextWriterLogger.Info*"></a>
  452. <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>
  453. <div class="markdown level1 summary"><p>Logs a formatted message with severity Info.</p>
  454. </div>
  455. <div class="markdown level1 conceptual"></div>
  456. <h5 class="decalaration">Declaration</h5>
  457. <div class="codewrapper">
  458. <pre><code class="lang-csharp hljs">public void Info(string format, params object[] formatArgs)</code></pre>
  459. </div>
  460. <h5 class="parameters">Parameters</h5>
  461. <table class="table table-bordered table-striped table-condensed">
  462. <thead>
  463. <tr>
  464. <th>Type</th>
  465. <th>Name</th>
  466. <th>Description</th>
  467. </tr>
  468. </thead>
  469. <tbody>
  470. <tr>
  471. <td><span class="xref">System.String</span></td>
  472. <td><span class="parametername">format</span></td>
  473. <td></td>
  474. </tr>
  475. <tr>
  476. <td><span class="xref">System.Object</span>[]</td>
  477. <td><span class="parametername">formatArgs</span></td>
  478. <td></td>
  479. </tr>
  480. </tbody>
  481. </table>
  482. <h5 class="implements">Implements</h5>
  483. <div><a class="xref" href="Grpc.Core.Logging.ILogger.html#Grpc_Core_Logging_ILogger_Info_System_String_System_Object___">ILogger.Info(String, Object[])</a></div>
  484. <a id="Grpc_Core_Logging_TextWriterLogger_Warning_" data-uid="Grpc.Core.Logging.TextWriterLogger.Warning*"></a>
  485. <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>
  486. <div class="markdown level1 summary"><p>Logs a message and an associated exception with severity Warning.</p>
  487. </div>
  488. <div class="markdown level1 conceptual"></div>
  489. <h5 class="decalaration">Declaration</h5>
  490. <div class="codewrapper">
  491. <pre><code class="lang-csharp hljs">public void Warning(Exception exception, string message)</code></pre>
  492. </div>
  493. <h5 class="parameters">Parameters</h5>
  494. <table class="table table-bordered table-striped table-condensed">
  495. <thead>
  496. <tr>
  497. <th>Type</th>
  498. <th>Name</th>
  499. <th>Description</th>
  500. </tr>
  501. </thead>
  502. <tbody>
  503. <tr>
  504. <td><span class="xref">System.Exception</span></td>
  505. <td><span class="parametername">exception</span></td>
  506. <td></td>
  507. </tr>
  508. <tr>
  509. <td><span class="xref">System.String</span></td>
  510. <td><span class="parametername">message</span></td>
  511. <td></td>
  512. </tr>
  513. </tbody>
  514. </table>
  515. <h5 class="implements">Implements</h5>
  516. <div><a class="xref" href="Grpc.Core.Logging.ILogger.html#Grpc_Core_Logging_ILogger_Warning_System_Exception_System_String_">ILogger.Warning(Exception, String)</a></div>
  517. <a id="Grpc_Core_Logging_TextWriterLogger_Warning_" data-uid="Grpc.Core.Logging.TextWriterLogger.Warning*"></a>
  518. <h4 id="Grpc_Core_Logging_TextWriterLogger_Warning_System_String_" data-uid="Grpc.Core.Logging.TextWriterLogger.Warning(System.String)">Warning(String)</h4>
  519. <div class="markdown level1 summary"><p>Logs a message with severity Warning.</p>
  520. </div>
  521. <div class="markdown level1 conceptual"></div>
  522. <h5 class="decalaration">Declaration</h5>
  523. <div class="codewrapper">
  524. <pre><code class="lang-csharp hljs">public void Warning(string message)</code></pre>
  525. </div>
  526. <h5 class="parameters">Parameters</h5>
  527. <table class="table table-bordered table-striped table-condensed">
  528. <thead>
  529. <tr>
  530. <th>Type</th>
  531. <th>Name</th>
  532. <th>Description</th>
  533. </tr>
  534. </thead>
  535. <tbody>
  536. <tr>
  537. <td><span class="xref">System.String</span></td>
  538. <td><span class="parametername">message</span></td>
  539. <td></td>
  540. </tr>
  541. </tbody>
  542. </table>
  543. <h5 class="implements">Implements</h5>
  544. <div><a class="xref" href="Grpc.Core.Logging.ILogger.html#Grpc_Core_Logging_ILogger_Warning_System_String_">ILogger.Warning(String)</a></div>
  545. <a id="Grpc_Core_Logging_TextWriterLogger_Warning_" data-uid="Grpc.Core.Logging.TextWriterLogger.Warning*"></a>
  546. <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>
  547. <div class="markdown level1 summary"><p>Logs a formatted message with severity Warning.</p>
  548. </div>
  549. <div class="markdown level1 conceptual"></div>
  550. <h5 class="decalaration">Declaration</h5>
  551. <div class="codewrapper">
  552. <pre><code class="lang-csharp hljs">public void Warning(string format, params object[] formatArgs)</code></pre>
  553. </div>
  554. <h5 class="parameters">Parameters</h5>
  555. <table class="table table-bordered table-striped table-condensed">
  556. <thead>
  557. <tr>
  558. <th>Type</th>
  559. <th>Name</th>
  560. <th>Description</th>
  561. </tr>
  562. </thead>
  563. <tbody>
  564. <tr>
  565. <td><span class="xref">System.String</span></td>
  566. <td><span class="parametername">format</span></td>
  567. <td></td>
  568. </tr>
  569. <tr>
  570. <td><span class="xref">System.Object</span>[]</td>
  571. <td><span class="parametername">formatArgs</span></td>
  572. <td></td>
  573. </tr>
  574. </tbody>
  575. </table>
  576. <h5 class="implements">Implements</h5>
  577. <div><a class="xref" href="Grpc.Core.Logging.ILogger.html#Grpc_Core_Logging_ILogger_Warning_System_String_System_Object___">ILogger.Warning(String, Object[])</a></div>
  578. </article>
  579. </div>
  580. <div class="hidden-sm col-md-2" role="complementary">
  581. <div class="sideaffix">
  582. <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
  583. <!-- <p><a class="back-to-top" href="#top">Back to top</a><p> -->
  584. </nav>
  585. </div>
  586. </div>
  587. </div>
  588. </div>
  589. <footer>
  590. <div class="grad-bottom"></div>
  591. <div class="footer">
  592. <div class="container">
  593. <span class="pull-right">
  594. <a href="#top">Back to top</a>
  595. </span>
  596. <span>Copyright © 2015-2017 Microsoft<br>Generated by <strong>DocFX</strong></span>
  597. </div>
  598. </div>
  599. </footer>
  600. </div>
  601. <script type="text/javascript" src="../styles/docfx.vendor.js"></script>
  602. <script type="text/javascript" src="../styles/docfx.js"></script>
  603. <script type="text/javascript" src="../styles/main.js"></script>
  604. </body>
  605. </html>