public static class ALogConfiguration.Builder
extends java.lang.Object
ALogConfiguration
instance.Modifier and Type | Method and Description |
---|---|
ALogConfiguration |
build()
Builds new
ALogConfiguration instance with set to this builder instance
parameters. |
ALogConfiguration.Builder |
classPrefixEnabled(boolean isClassPrefixEnabled)
Enables/disables location class name in message prefix.
|
ALogConfiguration.Builder |
enabled(boolean isEnabled)
Enables/disables logging.
|
ALogConfiguration.Builder |
jsonIndentSpaceCount(int jsonIndentSpaceCount)
Sets the count of indent space count for
ALog.json(ALogLevel, String) and
ALog.json(String) log messages. |
ALogConfiguration.Builder |
jsonLevel(ALogLevel jsonLevel)
Sets logging level for
ALog.json(String) calls. |
ALogConfiguration.Builder |
lineLocationPrefixEnabled(boolean isLineLocationPrefixEnabled)
Enables/disables logging call location in message prefix.
|
ALogConfiguration.Builder |
methodPrefixEnabled(boolean isMethodPrefixEnabled)
Enables/disables location method name in message prefix.
|
ALogConfiguration.Builder |
minimalLevel(ALogLevel minimalLevel)
Sets minimal logging level which should be processed.
|
ALogConfiguration.Builder |
stackTraceLineCount(int stackTraceLineCount)
Sets the count of stack trace lines to output with logging message.
|
ALogConfiguration.Builder |
tag(java.lang.String tag)
Sets default tag for log messages.
|
ALogConfiguration.Builder |
threadPrefixEnabled(boolean isThreadPrefixEnabled)
Enables/disables thread name in message prefix.
|
ALogConfiguration.Builder |
xmlIndentSpaceCount(int xmlIndentSpaceCount)
Sets the count of indent space count for
ALog.xml(ALogLevel, String) and
ALog.xml(String) log messages. |
ALogConfiguration.Builder |
xmlLevel(ALogLevel xmlLevel)
Sets logging level for
ALog.xml(String) calls. |
public ALogConfiguration.Builder enabled(boolean isEnabled)
isEnabled
- true if logging should be enabled, otherwise false.public ALogConfiguration.Builder minimalLevel(ALogLevel minimalLevel)
ALogLevel.VERBOSE
.minimalLevel
- Minimal logging level which should be precessed.
See ALogLevel
.public ALogConfiguration.Builder jsonLevel(ALogLevel jsonLevel)
ALog.json(String)
calls. Later JSON can be logged with
different logging level via ALog.json(ALogLevel, String)
calls. If not called
by default JSON logging level is set to ALogLevel.INFO
.jsonLevel
- Logging level for ALog.json(String)
calls.
See ALogLevel
.public ALogConfiguration.Builder xmlLevel(ALogLevel xmlLevel)
ALog.xml(String)
calls. Later XML can be logged with
different logging level via ALog.xml(ALogLevel, String)
calls. If not called
by default XML logging level is set to ALogLevel.INFO
.xmlLevel
- Logging level for ALog.xml(String)
calls.
See ALogLevel
.public ALogConfiguration.Builder tag(java.lang.String tag)
ALogger
instance got from ALog.t(String)
or
ALog.tst(String, int)
. If tag is set to null, the name of class where logging
method called is used. If this method is not called by default tag is set to null.tag
- Default tag for log messages.public ALogConfiguration.Builder threadPrefixEnabled(boolean isThreadPrefixEnabled)
isThreadPrefixEnabled
- true if logging message prefix should contain thread name of
logging method call location, otherwise false.public ALogConfiguration.Builder classPrefixEnabled(boolean isClassPrefixEnabled)
isClassPrefixEnabled
- true if logging message prefix should contain class name of
logging method call location, otherwise false.public ALogConfiguration.Builder methodPrefixEnabled(boolean isMethodPrefixEnabled)
isMethodPrefixEnabled
- true if logging message prefix should contain method name of
logging method call location, otherwise false.public ALogConfiguration.Builder lineLocationPrefixEnabled(boolean isLineLocationPrefixEnabled)
isLineLocationPrefixEnabled
- true if logging message prefix should contain
logging method call location, otherwise false.public ALogConfiguration.Builder stackTraceLineCount(int stackTraceLineCount)
stackTraceLineCount
- Count of stack trace lines to output with logging message.public ALogConfiguration.Builder jsonIndentSpaceCount(int jsonIndentSpaceCount)
ALog.json(ALogLevel, String)
and
ALog.json(String)
log messages.jsonIndentSpaceCount
- Indent space count for ALog.json(ALogLevel, String)
and ALog.json(String)
log messages.public ALogConfiguration.Builder xmlIndentSpaceCount(int xmlIndentSpaceCount)
ALog.xml(ALogLevel, String)
and
ALog.xml(String)
log messages.xmlIndentSpaceCount
- Indent space count for ALog.xml(ALogLevel, String)
and ALog.xml(String)
log messages.public ALogConfiguration build()
ALogConfiguration
instance with set to this builder instance
parameters.ALogConfiguration
instance.