Package org.asciidoctor.log
Class LogRecord
- java.lang.Object
-
- org.asciidoctor.log.LogRecord
-
public class LogRecord extends java.lang.Object
Description of an specific event occurred during conversion.
-
-
Constructor Summary
Constructors Constructor Description LogRecord(Severity severity, java.lang.String message)
LogRecord(Severity severity, Cursor cursor, java.lang.String message)
LogRecord(Severity severity, Cursor cursor, java.lang.String message, java.lang.String sourceFileName, java.lang.String sourceMethodName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Cursor
getCursor()
java.lang.String
getMessage()
Severity
getSeverity()
java.lang.String
getSourceFileName()
java.lang.String
getSourceMethodName()
-
-
-
Constructor Detail
-
LogRecord
public LogRecord(Severity severity, java.lang.String message)
-
-
Method Detail
-
getSeverity
public Severity getSeverity()
- Returns:
- Severity level of the current record.
-
getCursor
public Cursor getCursor()
- Returns:
- Information about the location of the event.
-
getMessage
public java.lang.String getMessage()
- Returns:
- Descriptive message about the event.
-
getSourceFileName
public java.lang.String getSourceFileName()
- Returns:
- The value
<script>
. For the source filename useCursor.getFile()
obtained with thegetCursor()
method.
-
getSourceMethodName
public java.lang.String getSourceMethodName()
- Returns:
- The Asciidoctor Ruby engine method used to convert the file;
convertFile
orconvert
whether you are converting a File or a String.
-
-