LoggerConfiguration

public class LoggerConfiguration

This class represents the logging configuration for the system.

xLog is used as logging backend.

If using the aar version of the API, add to your build.gradle:

compile 'com.elvishew:xlog:1.3.0'

Use the Builder class to get a valid configuration.

Fields

MAX_STACKTRACE_DEPTH

public static final int MAX_STACKTRACE_DEPTH

Maximum allowed depth for stacktrace.

Methods

getBorderLogging

public boolean getBorderLogging()

Get if the fancy border is enabled.

Returns

true if the fancy border is enabled.

getFileLogging

public boolean getFileLogging()

Get if file logging is enabled.

Returns

true if file logging is enabled.

getImprovedErrors

public boolean getImprovedErrors()

Get if error messages should have increased visibility.

Returns

true if error messages should have increased visibility.

getLogLevel

public LogLevel getLogLevel()

Get the configured log level.

Returns

The configured LogLevel.

getStackTraceLogging

public boolean getStackTraceLogging()

Get if stacktrace information is enabled.

Returns

true if stacktrace is enabled.

getStackTraceLoggingDepth

public int getStackTraceLoggingDepth()

Get the depth of the stacktrace information.

This is ignored if getStackTraceLogging() is false.

Returns

A integer detailing the stacktrace depth.

getThreadLogging

public boolean getThreadLogging()

Get if thread information is enabled.

Returns

true if thread is enabled.