# GrapeCity.Documents.Excel.Workbook.LoggerFactory

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Excel_Workbook_LoggerFactory_" data-uid="GrapeCity.Documents.Excel.Workbook.LoggerFactory*">LoggerFactory Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Excel_Workbook_LoggerFactory_" data-uid="GrapeCity.Documents.Excel.Workbook.LoggerFactory*"></a>
<h4 id="GrapeCity_Documents_Excel_Workbook_LoggerFactory" data-uid="GrapeCity.Documents.Excel.Workbook.LoggerFactory">LoggerFactory</h4>
<div class="markdown level1 summary"><p>Gets or sets the logger factory shared by all workbooks.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static ILoggerFactory LoggerFactory { get; set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Property LoggerFactory As ILoggerFactory</code></pre>
</div>
<h5 class="propertyValue">Property Value</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/microsoft.extensions.logging.iloggerfactory">ILoggerFactory</a></td>
      <td><p>If the value is <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null">null</a> (<code>Nothing</code>),
workbooks will not print logs.
Otherwise, workbooks will print logs with the specified <a class="xref" href="https://learn.microsoft.com/dotnet/api/microsoft.extensions.logging.iloggerfactory">ILoggerFactory</a>.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
