Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Description

Excerpt

Sets the amount of information written to the debug log file. To create a log file, you must also specify the full path of the file in the HTMLToWord.LogFileName property. If no errors occur then HTMLToWord does not generate a log file.

Signature
C#
C#
<table class="diff-macro"><thead><tr><th class="diff-macro-title">unmigrated-wiki-markup</th></tr></thead><tbody><tr><td class="diff-macro-body"><pre>
 public LoggingLevel DebugLogLevel{ get; set; }
</pre></td></tr></tbody></table>
Signature
vb.net
vb.net
Public <p>Public Property DebugLogLevel() As LoggingLevel</p>LoggingLevel
Remarks

For a list of valid property values, see HTMLToWord.LoggingLevel.

Example
Code Block
csharp
csharp
titleC#


//--- Get the current logging level.
HTMLToWord.LoggingLevel currentLogLevel = h2w.DebugLogLevel;

//--- Set the log level of the h2w object equal to Debug
h2w.LoggingLevel = HTMLToWord.LoggingLevel.Debug;
h2w.LogFileName = @"c:\HTMLToWord\Logfile.txt";
Code Block
vb.net
vb.net
titlevb.net


'--- Get the current logging level.
Dim currentLogLevel As HTMLToWord.LoggingLevel = h2w.DebugLogLevel

'--- Set the log level of the oHTMLToWord object equal to Trace
Dim h2w As New HTMLToWord()
h2w.DebugLogLevel = HTMLToWord.LoggingLevel.Trace
h2w.LogFileName = "c:\HTMLToWord\Logfile.txt"