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#
public LoggingLevel DebugLogLevel{ get; set; }
{signature}{signature:
}
Signature
vb.net
vb.net
Public Property DebugLogLevel() As LoggingLevel
{signature}
{remarks}For a list of valid property values, see [HTMLToWord.LoggingLevel|HTMLToWord.LoggingLevel].

{remarks}
{example}{code:csharp|title=C#}

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} {code:
Code Block
vb.net
|title=
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"
{code} {example}