View as MarkdownMarkdown
By default, logging is disabled when rendering documents. You can log to a file.
To log to a text file, use the FileLogger class.
The log contains the following four types of messages:
- Error means unrecoverable exceptions
- Warning means recoverable/expected exceptions
- Debug means debug information
- Trace means general information
The following code snippet shows how to log to a file using the FileLogger class:
The following image shows the output.log file:

We value your opinion. Your feedback will help us improve our documentation.