@groovy.transform.CompileStatic @groovy.util.logging.Slf4j class AsciidoctorJLogProcessor extends Object implements Serializable
How to deal with failures coming out of AsciidoctorJ.
| Modifiers | Name | Description |
|---|---|---|
class |
AsciidoctorJLogProcessor.1 |
| Constructor and description |
|---|
AsciidoctorJLogProcessor
(int maxSeverityLevel, int failureLevel) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
void |
failOnFailureLevelReachedOrExceeded()If failure level is reached or exceed, fail with an exception. |
|
void |
failOnWarnings()If any warning message was set, fail with an exception. |
|
org.asciidoctor.log.LogHandler |
getLogHandler(ExecutorLogLevel required)Creates a log handler for Asciidoctor |
|
List<String> |
getWarningMessages()The list of warning messages that was recorded during the conversion. |
|
void |
logMessage(ExecutorLogLevel level, String msg)Forwards the message to Slf4j. |
|
void |
resetMessagePatternsTo(List<Pattern> patterns)Patterns for matching log messages as errors |
If failure level is reached or exceed, fail with an exception.
If any warning message was set, fail with an exception.
Creates a log handler for Asciidoctor
required - The required level of loggingThe list of warning messages that was recorded during the conversion.
Forwards the message to Slf4j.
logLevel - The level of the messagemsg - Message to be loggedCopyright © 2013-2024 the original author or authors. All rights reserved.