Skip navigation links
A B C D E F G I J L M N O P R S T V W X 

A

AbstractFilterInterceptor - Class in com.elvishew.xlog.interceptor
An filter interceptor is used to filter some specific logs out, this filtered logs won't be printed by any printer.
AbstractFilterInterceptor() - Constructor for class com.elvishew.xlog.interceptor.AbstractFilterInterceptor
 
addBorder(String[]) - Static method in class com.elvishew.xlog.LogUtils
Add border to string segments using default border formatter.
addInterceptor(Interceptor) - Method in class com.elvishew.xlog.LogConfiguration.Builder
Add an interceptor.
addInterceptor(Interceptor) - Method in class com.elvishew.xlog.Logger.Builder
Add an interceptor when Logger logging.
addInterceptor(Interceptor) - Static method in class com.elvishew.xlog.XLog
Start to customize a Logger and add an interceptor.
addObjectFormatter(Class<T>, ObjectFormatter<? super T>) - Method in class com.elvishew.xlog.LogConfiguration.Builder
Add a ObjectFormatter for specific class of object.
addObjectFormatter(Class<T>, ObjectFormatter<? super T>) - Method in class com.elvishew.xlog.Logger.Builder
Add an object formatter for specific class of object when Logger log an object.
addObjectFormatter(Class<T>, ObjectFormatter<? super T>) - Static method in class com.elvishew.xlog.XLog
Start to customize a Logger and add an object formatter for specific class of object.
ALL - Static variable in class com.elvishew.xlog.LogLevel
Log level for XLog#init, printing all logs.
AndroidPrinter - Class in com.elvishew.xlog.printer
Log Printer using Log.
AndroidPrinter() - Constructor for class com.elvishew.xlog.printer.AndroidPrinter
Constructor.
AndroidPrinter(int) - Constructor for class com.elvishew.xlog.printer.AndroidPrinter
Constructor.

B

b() - Method in class com.elvishew.xlog.LogConfiguration.Builder
Enable border.
b() - Method in class com.elvishew.xlog.Logger.Builder
Enable border.
b() - Static method in class com.elvishew.xlog.XLog
Start to customize a Logger and enable border.
BackupStrategy - Interface in com.elvishew.xlog.printer.file.backup
Decide whether the log file should be backup and use a new file for next logging.
backupStrategy(BackupStrategy) - Method in class com.elvishew.xlog.printer.file.FilePrinter.Builder
Set the backup strategy for log file.
BlacklistTagsFilterInterceptor - Class in com.elvishew.xlog.interceptor
Filter out the logs with a tag that is in the blacklist.
BlacklistTagsFilterInterceptor(String...) - Constructor for class com.elvishew.xlog.interceptor.BlacklistTagsFilterInterceptor
Constructor
BlacklistTagsFilterInterceptor(Iterable<String>) - Constructor for class com.elvishew.xlog.interceptor.BlacklistTagsFilterInterceptor
Constructor
BorderFormatter - Interface in com.elvishew.xlog.formatter.border
The border formatter used to wrap string segments with borders when logging.
borderFormatter - Variable in class com.elvishew.xlog.LogConfiguration
The border formatter used to format the border when logging.
borderFormatter(BorderFormatter) - Method in class com.elvishew.xlog.LogConfiguration.Builder
Set the border formatter used when logging.
borderFormatter(BorderFormatter) - Method in class com.elvishew.xlog.Logger.Builder
Set the border formatter when Logger logging.
borderFormatter(BorderFormatter) - Static method in class com.elvishew.xlog.XLog
Start to customize a Logger and set the BorderFormatter.
build() - Method in class com.elvishew.xlog.LogConfiguration.Builder
Builds configured LogConfiguration object.
build() - Method in class com.elvishew.xlog.Logger.Builder
Builds configured Logger object.
build() - Method in class com.elvishew.xlog.printer.file.FilePrinter.Builder
Build configured FilePrinter object.
Builder() - Constructor for class com.elvishew.xlog.LogConfiguration.Builder
Construct a builder with all default configurations.
Builder(LogConfiguration) - Constructor for class com.elvishew.xlog.LogConfiguration.Builder
Construct a builder with all configurations from another LogConfiguration.
Builder() - Constructor for class com.elvishew.xlog.Logger.Builder
Construct a builder, which will perform the same as the global one by default.
Builder(String) - Constructor for class com.elvishew.xlog.printer.file.FilePrinter.Builder
Construct a builder.
builtinObjectFormatters() - Static method in class com.elvishew.xlog.internal.DefaultsFactory
Get the builtin object formatters.
BundleFormatter - Class in com.elvishew.xlog.formatter.message.object
Format an Bundle object to a string.
BundleFormatter() - Constructor for class com.elvishew.xlog.formatter.message.object.BundleFormatter
 
bundleToString(Bundle) - Static method in class com.elvishew.xlog.internal.util.ObjectToStringUtil
Bundle object to string, the string would be in the format of "Bundle[{...}]".

C

ChangelessFileNameGenerator - Class in com.elvishew.xlog.printer.file.naming
Generate a file name that is changeless.
ChangelessFileNameGenerator(String) - Constructor for class com.elvishew.xlog.printer.file.naming.ChangelessFileNameGenerator
Constructor.
ClassicFlattener - Class in com.elvishew.xlog.flattener
The classic flattener, flatten the log with pattern "".
ClassicFlattener() - Constructor for class com.elvishew.xlog.flattener.ClassicFlattener
 
CleanStrategy - Interface in com.elvishew.xlog.printer.file.clean
Decide whether the log file should be clean.
cleanStrategy(CleanStrategy) - Method in class com.elvishew.xlog.printer.file.FilePrinter.Builder
Set the clean strategy for log file.
com.elvishew.xlog - package com.elvishew.xlog
 
com.elvishew.xlog.flattener - package com.elvishew.xlog.flattener
 
com.elvishew.xlog.formatter - package com.elvishew.xlog.formatter
 
com.elvishew.xlog.formatter.border - package com.elvishew.xlog.formatter.border
 
com.elvishew.xlog.formatter.message.json - package com.elvishew.xlog.formatter.message.json
 
com.elvishew.xlog.formatter.message.object - package com.elvishew.xlog.formatter.message.object
 
com.elvishew.xlog.formatter.message.throwable - package com.elvishew.xlog.formatter.message.throwable
 
com.elvishew.xlog.formatter.message.xml - package com.elvishew.xlog.formatter.message.xml
 
com.elvishew.xlog.formatter.stacktrace - package com.elvishew.xlog.formatter.stacktrace
 
com.elvishew.xlog.formatter.thread - package com.elvishew.xlog.formatter.thread
 
com.elvishew.xlog.interceptor - package com.elvishew.xlog.interceptor
 
com.elvishew.xlog.internal - package com.elvishew.xlog.internal
 
com.elvishew.xlog.internal.util - package com.elvishew.xlog.internal.util
 
com.elvishew.xlog.printer - package com.elvishew.xlog.printer
 
com.elvishew.xlog.printer.file - package com.elvishew.xlog.printer.file
 
com.elvishew.xlog.printer.file.backup - package com.elvishew.xlog.printer.file.backup
 
com.elvishew.xlog.printer.file.clean - package com.elvishew.xlog.printer.file.clean
 
com.elvishew.xlog.printer.file.naming - package com.elvishew.xlog.printer.file.naming
 
com.elvishew.xlog.printer.flattener - package com.elvishew.xlog.printer.flattener
 
compress(String, String) - Static method in class com.elvishew.xlog.LogUtils
Compress all files under the specific folder to a single zip file.
ConsolePrinter - Class in com.elvishew.xlog.printer
Log Printer using System.out.println(String).
ConsolePrinter() - Constructor for class com.elvishew.xlog.printer.ConsolePrinter
Constructor.
ConsolePrinter(Flattener) - Constructor for class com.elvishew.xlog.printer.ConsolePrinter
Constructor.
createBackupStrategy() - Static method in class com.elvishew.xlog.internal.DefaultsFactory
Create the default backup strategy for FilePrinter.
createBorderFormatter() - Static method in class com.elvishew.xlog.internal.DefaultsFactory
Create the default border formatter.
createCleanStrategy() - Static method in class com.elvishew.xlog.internal.DefaultsFactory
Create the default clean strategy for FilePrinter.
createFileNameGenerator() - Static method in class com.elvishew.xlog.internal.DefaultsFactory
Create the default file name generator for FilePrinter.
createFlattener() - Static method in class com.elvishew.xlog.internal.DefaultsFactory
Create the default Flattener.
createFlattener2() - Static method in class com.elvishew.xlog.internal.DefaultsFactory
Create the default Flattener2.
createJsonFormatter() - Static method in class com.elvishew.xlog.internal.DefaultsFactory
Create the default JSON formatter.
createPrinter() - Static method in class com.elvishew.xlog.internal.DefaultsFactory
Create the default printer.
createStackTraceFormatter() - Static method in class com.elvishew.xlog.internal.DefaultsFactory
Create the default stack trace formatter.
createThreadFormatter() - Static method in class com.elvishew.xlog.internal.DefaultsFactory
Create the default thread formatter.
createThrowableFormatter() - Static method in class com.elvishew.xlog.internal.DefaultsFactory
Create the default throwable formatter.
createXmlFormatter() - Static method in class com.elvishew.xlog.internal.DefaultsFactory
Create the default XML formatter.

D

d(Object) - Method in class com.elvishew.xlog.Logger.Builder
d(Object[]) - Method in class com.elvishew.xlog.Logger.Builder
d(String, Object...) - Method in class com.elvishew.xlog.Logger.Builder
d(String) - Method in class com.elvishew.xlog.Logger.Builder
d(String, Throwable) - Method in class com.elvishew.xlog.Logger.Builder
d(Object) - Method in class com.elvishew.xlog.Logger
Log an object with level LogLevel.DEBUG.
d(Object[]) - Method in class com.elvishew.xlog.Logger
Log an array with level LogLevel.DEBUG.
d(String, Object...) - Method in class com.elvishew.xlog.Logger
Log a message with level LogLevel.DEBUG.
d(String) - Method in class com.elvishew.xlog.Logger
Log a message with level LogLevel.DEBUG.
d(String, Throwable) - Method in class com.elvishew.xlog.Logger
Log a message and a throwable with level LogLevel.DEBUG.
d(Object) - Static method in class com.elvishew.xlog.XLog
Log an object with level LogLevel.DEBUG.
d(Object[]) - Static method in class com.elvishew.xlog.XLog
Log an array with level LogLevel.DEBUG.
d(String, Object...) - Static method in class com.elvishew.xlog.XLog
Log a message with level LogLevel.DEBUG.
d(String) - Static method in class com.elvishew.xlog.XLog
Log a message with level LogLevel.DEBUG.
d(String, Throwable) - Static method in class com.elvishew.xlog.XLog
Log a message and a throwable with level LogLevel.DEBUG.
d(String, String) - Static method in class com.elvishew.xlog.XLog.Log
Deprecated.
compatible with Log.d(String, String)
d(String, String, Throwable) - Static method in class com.elvishew.xlog.XLog.Log
Deprecated.
compatible with Log.d(String, String, Throwable)
DateFileNameGenerator - Class in com.elvishew.xlog.printer.file.naming
Generate file name according to the timestamp, different dates will lead to different file names.
DateFileNameGenerator() - Constructor for class com.elvishew.xlog.printer.file.naming.DateFileNameGenerator
 
DEBUG - Static variable in class com.elvishew.xlog.LogLevel
Log level for XLog.d.
DefaultBorderFormatter - Class in com.elvishew.xlog.formatter.border
String segments wrapped with borders look like:
╔════════════════════════════════════════════════════════════════════════════
║String segment 1
╟────────────────────────────────────────────────────────────────────────────
║String segment 2
╟────────────────────────────────────────────────────────────────────────────
║String segment 3
╚════════════════════════════════════════════════════════════════════════════
DefaultBorderFormatter() - Constructor for class com.elvishew.xlog.formatter.border.DefaultBorderFormatter
 
DefaultFlattener - Class in com.elvishew.xlog.flattener
Simply join the timestamp, log level, tag and message together.
DefaultFlattener() - Constructor for class com.elvishew.xlog.flattener.DefaultFlattener
 
DefaultJsonFormatter - Class in com.elvishew.xlog.formatter.message.json
Simply format the JSON using JSONObject and JSONArray.
DefaultJsonFormatter() - Constructor for class com.elvishew.xlog.formatter.message.json.DefaultJsonFormatter
 
DefaultLogFlattener - Class in com.elvishew.xlog.printer.flattener
Deprecated.
use DefaultFlattener instead, since 1.3.0
DefaultLogFlattener() - Constructor for class com.elvishew.xlog.printer.flattener.DefaultLogFlattener
Deprecated.
 
DefaultsFactory - Class in com.elvishew.xlog.internal
Factory for providing default implementation.
DefaultsFactory() - Constructor for class com.elvishew.xlog.internal.DefaultsFactory
 
DefaultStackTraceFormatter - Class in com.elvishew.xlog.formatter.stacktrace
Formatted stack trace looks like:
├ com.elvishew.xlog.SampleClassC.sampleMethodC(SampleClassC.java:200)
├ com.elvishew.xlog.SampleClassB.sampleMethodB(SampleClassB.java:100)
└ com.elvishew.xlog.SampleClassA.sampleMethodA(SampleClassA.java:50)
DefaultStackTraceFormatter() - Constructor for class com.elvishew.xlog.formatter.stacktrace.DefaultStackTraceFormatter
 
DefaultThreadFormatter - Class in com.elvishew.xlog.formatter.thread
Formatted stack trace looks like:
Thread: thread-name
DefaultThreadFormatter() - Constructor for class com.elvishew.xlog.formatter.thread.DefaultThreadFormatter
 
DefaultThrowableFormatter - Class in com.elvishew.xlog.formatter.message.throwable
Simply put each stack trace(method name, source file and line number) of the throwable in a single line.
DefaultThrowableFormatter() - Constructor for class com.elvishew.xlog.formatter.message.throwable.DefaultThrowableFormatter
 
DefaultXmlFormatter - Class in com.elvishew.xlog.formatter.message.xml
Simply format the XML with a indent of .
DefaultXmlFormatter() - Constructor for class com.elvishew.xlog.formatter.message.xml.DefaultXmlFormatter
 

E

e(Object) - Method in class com.elvishew.xlog.Logger.Builder
e(Object[]) - Method in class com.elvishew.xlog.Logger.Builder
e(String, Object...) - Method in class com.elvishew.xlog.Logger.Builder
e(String) - Method in class com.elvishew.xlog.Logger.Builder
e(String, Throwable) - Method in class com.elvishew.xlog.Logger.Builder
e(Object) - Method in class com.elvishew.xlog.Logger
Log an object with level LogLevel.ERROR.
e(Object[]) - Method in class com.elvishew.xlog.Logger
Log an array with level LogLevel.ERROR.
e(String, Object...) - Method in class com.elvishew.xlog.Logger
Log a message with level LogLevel.ERROR.
e(String) - Method in class com.elvishew.xlog.Logger
Log a message with level LogLevel.ERROR.
e(String, Throwable) - Method in class com.elvishew.xlog.Logger
Log a message and a throwable with level LogLevel.ERROR.
e(Object) - Static method in class com.elvishew.xlog.XLog
Log an object with level LogLevel.ERROR.
e(Object[]) - Static method in class com.elvishew.xlog.XLog
Log an array with level LogLevel.ERROR.
e(String, Object...) - Static method in class com.elvishew.xlog.XLog
Log a message with level LogLevel.ERROR.
e(String) - Static method in class com.elvishew.xlog.XLog
Log a message with level LogLevel.ERROR.
e(String, Throwable) - Static method in class com.elvishew.xlog.XLog
Log a message and a throwable with level LogLevel.ERROR.
e(String, String) - Static method in class com.elvishew.xlog.XLog.Log
Deprecated.
compatible with Log.e(String, String)
e(String, String, Throwable) - Static method in class com.elvishew.xlog.XLog.Log
Deprecated.
compatible with Log.e(String, String, Throwable)
ERROR - Static variable in class com.elvishew.xlog.LogLevel
Log level for XLog.e.

F

FileLastModifiedCleanStrategy - Class in com.elvishew.xlog.printer.file.clean
Limit the file life of a max time.
FileLastModifiedCleanStrategy(long) - Constructor for class com.elvishew.xlog.printer.file.clean.FileLastModifiedCleanStrategy
Constructor.
fileNameGenerator(FileNameGenerator) - Method in class com.elvishew.xlog.printer.file.FilePrinter.Builder
Set the file name generator for log file.
FileNameGenerator - Interface in com.elvishew.xlog.printer.file.naming
Generates names for log files.
FilePrinter - Class in com.elvishew.xlog.printer.file
Log Printer using file system.
FilePrinter.Builder - Class in com.elvishew.xlog.printer.file
Builder for FilePrinter.
FileSizeBackupStrategy - Class in com.elvishew.xlog.printer.file.backup
Limit the file size of a max length.
FileSizeBackupStrategy(long) - Constructor for class com.elvishew.xlog.printer.file.backup.FileSizeBackupStrategy
Constructor.
flatten(int, String, String) - Method in class com.elvishew.xlog.flattener.DefaultFlattener
 
flatten(long, int, String, String) - Method in class com.elvishew.xlog.flattener.DefaultFlattener
 
flatten(int, String, String) - Method in interface com.elvishew.xlog.flattener.Flattener
Deprecated.
Flatten the log.
flatten(long, int, String, String) - Method in interface com.elvishew.xlog.flattener.Flattener2
Flatten the log.
flatten(int, String, String) - Method in class com.elvishew.xlog.flattener.PatternFlattener
 
flatten(long, int, String, String) - Method in class com.elvishew.xlog.flattener.PatternFlattener
 
Flattener - Interface in com.elvishew.xlog.flattener
Deprecated.
use Flattener2 instead, since 1.6.0
flattener(Flattener2) - Method in class com.elvishew.xlog.printer.file.FilePrinter.Builder
Set the flattener when print a log.
Flattener2 - Interface in com.elvishew.xlog.flattener
The flattener used to flatten log elements(log time milliseconds, level, tag and message) to a single CharSequence.
format(String[]) - Method in class com.elvishew.xlog.formatter.border.DefaultBorderFormatter
 
format(T) - Method in interface com.elvishew.xlog.formatter.Formatter
Format the data to a readable and loggable string.
format(String) - Method in class com.elvishew.xlog.formatter.message.json.DefaultJsonFormatter
 
format(Bundle) - Method in class com.elvishew.xlog.formatter.message.object.BundleFormatter
Format an Bundle object to a string.
format(Intent) - Method in class com.elvishew.xlog.formatter.message.object.IntentFormatter
Format an Intent object to a string.
format(Throwable) - Method in class com.elvishew.xlog.formatter.message.throwable.DefaultThrowableFormatter
 
format(String) - Method in class com.elvishew.xlog.formatter.message.xml.DefaultXmlFormatter
 
format(StackTraceElement[]) - Method in class com.elvishew.xlog.formatter.stacktrace.DefaultStackTraceFormatter
 
format(Thread) - Method in class com.elvishew.xlog.formatter.thread.DefaultThreadFormatter
 
FormatException - Exception in com.elvishew.xlog.formatter
Thrown to indicate that the format of the data is something wrong.
FormatException() - Constructor for exception com.elvishew.xlog.formatter.FormatException
Constructs a FormatException with no detail message.
FormatException(String) - Constructor for exception com.elvishew.xlog.formatter.FormatException
Constructs a FormatException with the specified detail message.
FormatException(String, Throwable) - Constructor for exception com.elvishew.xlog.formatter.FormatException
Constructs a new exception with the specified detail message and cause.
FormatException(Throwable) - Constructor for exception com.elvishew.xlog.formatter.FormatException
Constructs a new exception with the specified cause and a detail message of (cause==null ? null : cause.toString()) (which typically contains the class and detail message of cause).
formatJson(String) - Static method in class com.elvishew.xlog.LogUtils
Format a JSON string using default JSON formatter.
formatStackTrace(StackTraceElement[]) - Static method in class com.elvishew.xlog.LogUtils
Format a stack trace using default stack trace formatter.
Formatter<T> - Interface in com.elvishew.xlog.formatter
A formatter is used for format the data that is not a string, or that is a string but not well formatted, we should format the data to a well formatted string so printers can print them.
formatThread(Thread) - Static method in class com.elvishew.xlog.LogUtils
Format a thread using default thread formatter.
formatThrowable(Throwable) - Static method in class com.elvishew.xlog.LogUtils
Format a throwable using default throwable formatter.
formatXml(String) - Static method in class com.elvishew.xlog.LogUtils
Format an XML string using default XML formatter.

G

generateFileName(int, long) - Method in class com.elvishew.xlog.printer.file.naming.ChangelessFileNameGenerator
 
generateFileName(int, long) - Method in class com.elvishew.xlog.printer.file.naming.DateFileNameGenerator
Generate a file name which represent a specific date.
generateFileName(int, long) - Method in interface com.elvishew.xlog.printer.file.naming.FileNameGenerator
Generate file name for specified log level and timestamp.
generateFileName(int, long) - Method in class com.elvishew.xlog.printer.file.naming.LevelFileNameGenerator
Generate a file name which represent a specific log level.
get() - Static method in class com.elvishew.xlog.internal.Platform
 
getCroppedRealStackTrack(StackTraceElement[], String, int) - Static method in class com.elvishew.xlog.internal.util.StackTraceUtil
Get the real stack trace and then crop it with a max depth.
getLevelName(int) - Static method in class com.elvishew.xlog.LogLevel
Get a name representing the specified log level.
getObjectFormatter(T) - Method in class com.elvishew.xlog.LogConfiguration
Get ObjectFormatter for specific object.
getShortLevelName(int) - Static method in class com.elvishew.xlog.LogLevel
Get a short name representing the specified log level.
getStackTraceString(Throwable) - Static method in class com.elvishew.xlog.internal.util.StackTraceUtil
Get a loggable stack trace from a Throwable
getStackTraceString(Throwable) - Static method in class com.elvishew.xlog.XLog.Log
Deprecated.
compatible with Log.getStackTraceString(Throwable)

I

i(Object) - Method in class com.elvishew.xlog.Logger.Builder
i(Object[]) - Method in class com.elvishew.xlog.Logger.Builder
i(String, Object...) - Method in class com.elvishew.xlog.Logger.Builder
i(String) - Method in class com.elvishew.xlog.Logger.Builder
i(String, Throwable) - Method in class com.elvishew.xlog.Logger.Builder
i(Object) - Method in class com.elvishew.xlog.Logger
Log an object with level LogLevel.INFO.
i(Object[]) - Method in class com.elvishew.xlog.Logger
Log an array with level LogLevel.INFO.
i(String, Object...) - Method in class com.elvishew.xlog.Logger
Log a message with level LogLevel.INFO.
i(String) - Method in class com.elvishew.xlog.Logger
Log a message with level LogLevel.INFO.
i(String, Throwable) - Method in class com.elvishew.xlog.Logger
Log a message and a throwable with level LogLevel.INFO.
i(Object) - Static method in class com.elvishew.xlog.XLog
Log an object with level LogLevel.INFO.
i(Object[]) - Static method in class com.elvishew.xlog.XLog
Log an array with level LogLevel.INFO.
i(String, Object...) - Static method in class com.elvishew.xlog.XLog
Log a message with level LogLevel.INFO.
i(String) - Static method in class com.elvishew.xlog.XLog
Log a message with level LogLevel.INFO.
i(String, Throwable) - Static method in class com.elvishew.xlog.XLog
Log a message and a throwable with level LogLevel.INFO.
i(String, String) - Static method in class com.elvishew.xlog.XLog.Log
Deprecated.
compatible with Log.i(String, String)
i(String, String, Throwable) - Static method in class com.elvishew.xlog.XLog.Log
Deprecated.
compatible with Log.i(String, String, Throwable)
INFO - Static variable in class com.elvishew.xlog.LogLevel
Log level for XLog.i.
init() - Static method in class com.elvishew.xlog.XLog
Initialize log system, should be called only once.
init(int) - Static method in class com.elvishew.xlog.XLog
Initialize log system, should be called only once.
init(int, LogConfiguration) - Static method in class com.elvishew.xlog.XLog
Deprecated.
the log level is part of log configuration now, use XLog.init(LogConfiguration) instead, since 1.3.0
init(LogConfiguration) - Static method in class com.elvishew.xlog.XLog
Initialize log system, should be called only once.
init(Printer...) - Static method in class com.elvishew.xlog.XLog
Initialize log system, should be called only once.
init(int, Printer...) - Static method in class com.elvishew.xlog.XLog
Initialize log system, should be called only once.
init(int, LogConfiguration, Printer...) - Static method in class com.elvishew.xlog.XLog
Deprecated.
the log level is part of log configuration now, use XLog.init(LogConfiguration, Printer...) instead, since 1.3.0
init(LogConfiguration, Printer...) - Static method in class com.elvishew.xlog.XLog
Initialize log system, should be called only once.
IntentFormatter - Class in com.elvishew.xlog.formatter.message.object
Format an Intent object to a string.
IntentFormatter() - Constructor for class com.elvishew.xlog.formatter.message.object.IntentFormatter
 
intentToString(Intent) - Static method in class com.elvishew.xlog.internal.util.ObjectToStringUtil
Intent object to string, the string would be in the format of "Intent { ...
intercept(LogItem) - Method in class com.elvishew.xlog.interceptor.AbstractFilterInterceptor
Intercept the log.
intercept(LogItem) - Method in interface com.elvishew.xlog.interceptor.Interceptor
Intercept the log.
Interceptor - Interface in com.elvishew.xlog.interceptor
Interceptors are used to intercept every log after formatting message, thread info and stack trace info, and before printing, normally we can modify or drop the log.
interceptors - Variable in class com.elvishew.xlog.LogConfiguration
The interceptors, used to intercept the log when logging.
isFileNameChangeable() - Method in class com.elvishew.xlog.printer.file.naming.ChangelessFileNameGenerator
 
isFileNameChangeable() - Method in class com.elvishew.xlog.printer.file.naming.DateFileNameGenerator
 
isFileNameChangeable() - Method in interface com.elvishew.xlog.printer.file.naming.FileNameGenerator
Whether the generated file name will change or not.
isFileNameChangeable() - Method in class com.elvishew.xlog.printer.file.naming.LevelFileNameGenerator
 
isLoggable(String, int) - Static method in class com.elvishew.xlog.XLog.Log
Deprecated.
compatible with Log.isLoggable(String, int)

J

json(String) - Method in class com.elvishew.xlog.Logger.Builder
json(String) - Method in class com.elvishew.xlog.Logger
Log a JSON string, with level LogLevel.DEBUG by default.
json(String) - Static method in class com.elvishew.xlog.XLog
Log a JSON string, with level LogLevel.DEBUG by default.
JsonFormatter - Interface in com.elvishew.xlog.formatter.message.json
The JSON formatter used to format the JSON string when log a JSON string.
jsonFormatter(JsonFormatter) - Method in class com.elvishew.xlog.LogConfiguration.Builder
Set the JSON formatter used when log a JSON string.
jsonFormatter - Variable in class com.elvishew.xlog.LogConfiguration
The JSON formatter used to format the JSON string when log a JSON string.
jsonFormatter(JsonFormatter) - Method in class com.elvishew.xlog.Logger.Builder
Set the JSON formatter when Logger log a JSON string.
jsonFormatter(JsonFormatter) - Static method in class com.elvishew.xlog.XLog
Start to customize a Logger and set the JsonFormatter.

L

level - Variable in class com.elvishew.xlog.LogItem
Level of the log.
LevelFileNameGenerator - Class in com.elvishew.xlog.printer.file.naming
Generate file name according to the log level, different levels lead to different file names.
LevelFileNameGenerator() - Constructor for class com.elvishew.xlog.printer.file.naming.LevelFileNameGenerator
 
lineSeparator - Static variable in class com.elvishew.xlog.internal.SystemCompat
The line separator of system.
log(int, Object) - Method in class com.elvishew.xlog.Logger.Builder
log(int, Object[]) - Method in class com.elvishew.xlog.Logger.Builder
log(int, String, Object...) - Method in class com.elvishew.xlog.Logger.Builder
log(int, String) - Method in class com.elvishew.xlog.Logger.Builder
log(int, String, Throwable) - Method in class com.elvishew.xlog.Logger.Builder
log(int, Object) - Method in class com.elvishew.xlog.Logger
Log an object with specific log level.
log(int, Object[]) - Method in class com.elvishew.xlog.Logger
Log an array with specific log level.
log(int, String, Object...) - Method in class com.elvishew.xlog.Logger
Log a message with specific log level.
log(int, String) - Method in class com.elvishew.xlog.Logger
Log a message with specific log level.
log(int, String, Throwable) - Method in class com.elvishew.xlog.Logger
Log a message and a throwable with specific log level.
log(int, Object) - Static method in class com.elvishew.xlog.XLog
Log an object with specific log level.
log(int, Object[]) - Static method in class com.elvishew.xlog.XLog
Log an array with specific log level.
log(int, String, Object...) - Static method in class com.elvishew.xlog.XLog
Log a message with specific log level.
log(int, String) - Static method in class com.elvishew.xlog.XLog
Log a message with specific log level.
log(int, String, Throwable) - Static method in class com.elvishew.xlog.XLog
Log a message and a throwable with specific log level.
Log() - Constructor for class com.elvishew.xlog.XLog.Log
Deprecated.
 
LogConfiguration - Class in com.elvishew.xlog
The configuration used for logging, always attached to a Logger, will affect all logs logged by the Logger.
LogConfiguration.Builder - Class in com.elvishew.xlog
Builder for LogConfiguration.
logFlattener(Flattener) - Method in class com.elvishew.xlog.printer.file.FilePrinter.Builder
Deprecated.
Flattener is deprecated, use flattener(Flattener2) instead, since 1.6.0
LogFlattener - Interface in com.elvishew.xlog.printer.flattener
Deprecated.
use Flattener instead, since 1.3.0
Logger - Class in com.elvishew.xlog
A logger is used to do the real logging work, can use multiple log printers to print the log.
Logger.Builder - Class in com.elvishew.xlog
Builder for Logger.
LogItem - Class in com.elvishew.xlog
Represent a single log going to be printed.
LogItem(int, String, String) - Constructor for class com.elvishew.xlog.LogItem
 
LogItem(int, String, String, String, String) - Constructor for class com.elvishew.xlog.LogItem
 
logLevel(int) - Method in class com.elvishew.xlog.LogConfiguration.Builder
Set the log level, the logs below of which would not be printed.
logLevel - Variable in class com.elvishew.xlog.LogConfiguration
The log level, the logs below of which would not be printed.
logLevel(int) - Method in class com.elvishew.xlog.Logger.Builder
Set the log level, the logs below of which would not be printed.
LogLevel - Class in com.elvishew.xlog
Log level indicate how important the log is.
LogLevel() - Constructor for class com.elvishew.xlog.LogLevel
 
logLevel(int) - Static method in class com.elvishew.xlog.XLog
Start to customize a Logger and set the log level.
LogUtils - Class in com.elvishew.xlog
Utilities for convenience.
LogUtils() - Constructor for class com.elvishew.xlog.LogUtils
 

M

msg - Variable in class com.elvishew.xlog.LogItem
The formatted message, should not be null.

N

nb() - Method in class com.elvishew.xlog.LogConfiguration.Builder
Disable border.
nb() - Method in class com.elvishew.xlog.Logger.Builder
Disable border.
nb() - Static method in class com.elvishew.xlog.XLog
Start to customize a Logger and disable border.
NeverBackupStrategy - Class in com.elvishew.xlog.printer.file.backup
Never backup the log file.
NeverBackupStrategy() - Constructor for class com.elvishew.xlog.printer.file.backup.NeverBackupStrategy
 
NeverCleanStrategy - Class in com.elvishew.xlog.printer.file.clean
Never Limit the file life.
NeverCleanStrategy() - Constructor for class com.elvishew.xlog.printer.file.clean.NeverCleanStrategy
 
NONE - Static variable in class com.elvishew.xlog.LogLevel
Log level for XLog#init, printing no log.
nst() - Method in class com.elvishew.xlog.LogConfiguration.Builder
Disable stack trace.
nst() - Method in class com.elvishew.xlog.Logger.Builder
Disable stack trace.
nst() - Static method in class com.elvishew.xlog.XLog
Start to customize a Logger and disable stack trace.
nt() - Method in class com.elvishew.xlog.LogConfiguration.Builder
Disable thread info.
nt() - Method in class com.elvishew.xlog.Logger.Builder
Disable thread info.
nt() - Static method in class com.elvishew.xlog.XLog
Start to customize a Logger and disable thread info.

O

ObjectFormatter<T> - Interface in com.elvishew.xlog.formatter.message.object
The Object formatter used to format an object to a string.
ObjectToStringUtil - Class in com.elvishew.xlog.internal.util
Utility for formatting object to string.
ObjectToStringUtil() - Constructor for class com.elvishew.xlog.internal.util.ObjectToStringUtil
 

P

PatternFlattener - Class in com.elvishew.xlog.flattener
Flatten the log using the format specified by pattern.
PatternFlattener(String) - Constructor for class com.elvishew.xlog.flattener.PatternFlattener
Constructor.
Platform - Class in com.elvishew.xlog.internal
 
Platform() - Constructor for class com.elvishew.xlog.internal.Platform
 
Printer - Interface in com.elvishew.xlog.printer
A printer is used for printing the log to somewhere, like android shell, terminal or file system.
printers(Printer...) - Method in class com.elvishew.xlog.Logger.Builder
Set the printers used to print the log when Logger log.
printers(Printer...) - Static method in class com.elvishew.xlog.XLog
Start to customize a Logger and set the Printer array.
PrinterSet - Class in com.elvishew.xlog.printer
Represents a group of Printers that should used to print logs in the same time, each printer may probably print the log to different place.
PrinterSet(Printer...) - Constructor for class com.elvishew.xlog.printer.PrinterSet
Constructor, pass printers in and will use all these printers to print the same logs.
println(int, String, String) - Method in class com.elvishew.xlog.printer.AndroidPrinter
 
println(int, String, String) - Method in class com.elvishew.xlog.printer.ConsolePrinter
 
println(int, String, String) - Method in class com.elvishew.xlog.printer.file.FilePrinter
 
println(int, String, String) - Method in interface com.elvishew.xlog.printer.Printer
Print log in new line.
println(int, String, String) - Method in class com.elvishew.xlog.printer.PrinterSet
 
println(int, String, String) - Method in class com.elvishew.xlog.printer.RemotePrinter
 
println(int, String, String) - Static method in class com.elvishew.xlog.XLog.Log
Deprecated.
compatible with Log.println(int, String, String)

R

reject(LogItem) - Method in class com.elvishew.xlog.interceptor.AbstractFilterInterceptor
Whether specific log should be filtered out.
reject(LogItem) - Method in class com.elvishew.xlog.interceptor.BlacklistTagsFilterInterceptor
Whether specific log should be filtered out.
reject(LogItem) - Method in class com.elvishew.xlog.interceptor.WhitelistTagsFilterInterceptor
Whether specific log should be filtered out.
RemotePrinter - Class in com.elvishew.xlog.printer
Log Printer which should print the log to remote server.
RemotePrinter() - Constructor for class com.elvishew.xlog.printer.RemotePrinter
 

S

shouldBackup(File) - Method in interface com.elvishew.xlog.printer.file.backup.BackupStrategy
Whether we should backup a specified log file.
shouldBackup(File) - Method in class com.elvishew.xlog.printer.file.backup.FileSizeBackupStrategy
 
shouldBackup(File) - Method in class com.elvishew.xlog.printer.file.backup.NeverBackupStrategy
 
shouldClean(File) - Method in interface com.elvishew.xlog.printer.file.clean.CleanStrategy
Whether we should clean a specified log file.
shouldClean(File) - Method in class com.elvishew.xlog.printer.file.clean.FileLastModifiedCleanStrategy
 
shouldClean(File) - Method in class com.elvishew.xlog.printer.file.clean.NeverCleanStrategy
 
st(int) - Method in class com.elvishew.xlog.LogConfiguration.Builder
Enable stack trace.
st(String, int) - Method in class com.elvishew.xlog.LogConfiguration.Builder
Enable stack trace.
st(int) - Method in class com.elvishew.xlog.Logger.Builder
Enable stack trace.
st(String, int) - Method in class com.elvishew.xlog.Logger.Builder
Enable stack trace.
st(int) - Static method in class com.elvishew.xlog.XLog
Start to customize a Logger and enable stack trace.
st(String, int) - Static method in class com.elvishew.xlog.XLog
Start to customize a Logger and enable stack trace.
stackTraceDepth - Variable in class com.elvishew.xlog.LogConfiguration
The number of stack trace elements we should log when logging with stack trace, 0 if no limitation.
StackTraceFormatter - Interface in com.elvishew.xlog.formatter.stacktrace
The stack trace formatter used to format the stack trace when logging.
stackTraceFormatter(StackTraceFormatter) - Method in class com.elvishew.xlog.LogConfiguration.Builder
Set the stack trace formatter used when logging.
stackTraceFormatter - Variable in class com.elvishew.xlog.LogConfiguration
The stack trace formatter used to format the stack trace when logging.
stackTraceFormatter(StackTraceFormatter) - Method in class com.elvishew.xlog.Logger.Builder
Set the stack trace formatter when Logger logging.
stackTraceFormatter(StackTraceFormatter) - Static method in class com.elvishew.xlog.XLog
Start to customize a Logger and set the StackTraceFormatter.
stackTraceInfo - Variable in class com.elvishew.xlog.LogItem
The formatted stack trace info, null if stack trace info is disabled.
stackTraceOrigin - Variable in class com.elvishew.xlog.LogConfiguration
The origin of stack trace elements from which we should not log when logging with stack trace, it can be a package name like "com.elvishew.xlog", a class name like "com.yourdomain.logWrapper", or something else between package name and class name, like "com.yourdomain.".
StackTraceUtil - Class in com.elvishew.xlog.internal.util
Utility related with stack trace.
StackTraceUtil() - Constructor for class com.elvishew.xlog.internal.util.StackTraceUtil
 
SystemCompat - Class in com.elvishew.xlog.internal
System environment.
SystemCompat() - Constructor for class com.elvishew.xlog.internal.SystemCompat
 
SystemPrinter - Class in com.elvishew.xlog.printer
Deprecated.
use ConsolePrinter instead, since 1.3.0
SystemPrinter() - Constructor for class com.elvishew.xlog.printer.SystemPrinter
Deprecated.
 

T

t() - Method in class com.elvishew.xlog.LogConfiguration.Builder
Enable thread info.
t() - Method in class com.elvishew.xlog.Logger.Builder
Enable thread info.
t() - Static method in class com.elvishew.xlog.XLog
Start to customize a Logger and enable thread info.
tag(String) - Method in class com.elvishew.xlog.LogConfiguration.Builder
Set the tag string used when log.
tag - Variable in class com.elvishew.xlog.LogConfiguration
The tag string.
tag(String) - Method in class com.elvishew.xlog.Logger.Builder
Set the tag string when Logger log.
tag - Variable in class com.elvishew.xlog.LogItem
The tag, should not be null.
tag(String) - Static method in class com.elvishew.xlog.XLog
Start to customize a Logger and set the tag.
ThreadFormatter - Interface in com.elvishew.xlog.formatter.thread
The thread formatter used to format the thread info when logging.
threadFormatter(ThreadFormatter) - Method in class com.elvishew.xlog.LogConfiguration.Builder
Set the thread formatter used when logging.
threadFormatter - Variable in class com.elvishew.xlog.LogConfiguration
The thread formatter used to format the thread when logging.
threadFormatter(ThreadFormatter) - Method in class com.elvishew.xlog.Logger.Builder
Set the thread formatter when Logger logging.
threadFormatter(ThreadFormatter) - Static method in class com.elvishew.xlog.XLog
Start to customize a Logger and set the ThreadFormatter.
threadInfo - Variable in class com.elvishew.xlog.LogItem
The formatted thread info, null if thread info is disabled.
ThrowableFormatter - Interface in com.elvishew.xlog.formatter.message.throwable
The throwable formatter used to format the throwable when log a message with throwable.
throwableFormatter(ThrowableFormatter) - Method in class com.elvishew.xlog.LogConfiguration.Builder
Set the throwable formatter used when log a message with throwable.
throwableFormatter - Variable in class com.elvishew.xlog.LogConfiguration
The throwable formatter used to format the throwable when log a message with throwable.
throwableFormatter(ThrowableFormatter) - Method in class com.elvishew.xlog.Logger.Builder
Set the throwable formatter when Logger log a message with throwable.
throwableFormatter(ThrowableFormatter) - Static method in class com.elvishew.xlog.XLog
Start to customize a Logger and set the ThrowableFormatter.

V

v(Object) - Method in class com.elvishew.xlog.Logger.Builder
v(Object[]) - Method in class com.elvishew.xlog.Logger.Builder
v(String, Object...) - Method in class com.elvishew.xlog.Logger.Builder
v(String) - Method in class com.elvishew.xlog.Logger.Builder
v(String, Throwable) - Method in class com.elvishew.xlog.Logger.Builder
v(Object) - Method in class com.elvishew.xlog.Logger
Log an object with level LogLevel.VERBOSE.
v(Object[]) - Method in class com.elvishew.xlog.Logger
Log an array with level LogLevel.VERBOSE.
v(String, Object...) - Method in class com.elvishew.xlog.Logger
Log a message with level LogLevel.VERBOSE.
v(String) - Method in class com.elvishew.xlog.Logger
Log a message with level LogLevel.VERBOSE.
v(String, Throwable) - Method in class com.elvishew.xlog.Logger
Log a message and a throwable with level LogLevel.VERBOSE.
v(String, String) - Static method in class com.elvishew.xlog.XLog.Log
Deprecated.
compatible with Log.v(String, String)
v(String, String, Throwable) - Static method in class com.elvishew.xlog.XLog.Log
Deprecated.
compatible with Log.v(String, String, Throwable)
v(Object) - Static method in class com.elvishew.xlog.XLog
Log an object with level LogLevel.VERBOSE.
v(Object[]) - Static method in class com.elvishew.xlog.XLog
Log an array with level LogLevel.VERBOSE.
v(String, Object...) - Static method in class com.elvishew.xlog.XLog
Log a message with level LogLevel.VERBOSE.
v(String) - Static method in class com.elvishew.xlog.XLog
Log a message with level LogLevel.VERBOSE.
v(String, Throwable) - Static method in class com.elvishew.xlog.XLog
Log a message and a throwable with level LogLevel.VERBOSE.
VERBOSE - Static variable in class com.elvishew.xlog.LogLevel
Log level for XLog.v.

W

w(Object) - Method in class com.elvishew.xlog.Logger.Builder
w(Object[]) - Method in class com.elvishew.xlog.Logger.Builder
w(String, Object...) - Method in class com.elvishew.xlog.Logger.Builder
w(String) - Method in class com.elvishew.xlog.Logger.Builder
w(String, Throwable) - Method in class com.elvishew.xlog.Logger.Builder
w(Object) - Method in class com.elvishew.xlog.Logger
Log an object with level LogLevel.WARN.
w(Object[]) - Method in class com.elvishew.xlog.Logger
Log an array with level LogLevel.WARN.
w(String, Object...) - Method in class com.elvishew.xlog.Logger
Log a message with level LogLevel.WARN.
w(String) - Method in class com.elvishew.xlog.Logger
Log a message with level LogLevel.WARN.
w(String, Throwable) - Method in class com.elvishew.xlog.Logger
Log a message and a throwable with level LogLevel.WARN.
w(String, String) - Static method in class com.elvishew.xlog.XLog.Log
Deprecated.
compatible with Log.w(String, String)
w(String, String, Throwable) - Static method in class com.elvishew.xlog.XLog.Log
Deprecated.
compatible with Log.w(String, String, Throwable)
w(String, Throwable) - Static method in class com.elvishew.xlog.XLog.Log
Deprecated.
compatible with Log.w(String, Throwable)
w(Object) - Static method in class com.elvishew.xlog.XLog
Log an object with level LogLevel.WARN.
w(Object[]) - Static method in class com.elvishew.xlog.XLog
Log an array with level LogLevel.WARN.
w(String, Object...) - Static method in class com.elvishew.xlog.XLog
Log a message with level LogLevel.WARN.
w(String) - Static method in class com.elvishew.xlog.XLog
Log a message with level LogLevel.WARN.
w(String, Throwable) - Static method in class com.elvishew.xlog.XLog
Log a message and a throwable with level LogLevel.WARN.
warn(String) - Method in class com.elvishew.xlog.internal.Platform
 
WARN - Static variable in class com.elvishew.xlog.LogLevel
Log level for XLog.w.
WhitelistTagsFilterInterceptor - Class in com.elvishew.xlog.interceptor
Filter out the logs with a tag that is NOT in the whitelist.
WhitelistTagsFilterInterceptor(String...) - Constructor for class com.elvishew.xlog.interceptor.WhitelistTagsFilterInterceptor
Constructor
WhitelistTagsFilterInterceptor(Iterable<String>) - Constructor for class com.elvishew.xlog.interceptor.WhitelistTagsFilterInterceptor
Constructor
withBorder - Variable in class com.elvishew.xlog.LogConfiguration
Whether we should log with border.
withStackTrace - Variable in class com.elvishew.xlog.LogConfiguration
Whether we should log with stack trace.
withThread - Variable in class com.elvishew.xlog.LogConfiguration
Whether we should log with thread info.
wtf(String, String) - Static method in class com.elvishew.xlog.XLog.Log
Deprecated.
compatible with Log.wtf(String, String)
wtf(String, Throwable) - Static method in class com.elvishew.xlog.XLog.Log
Deprecated.
compatible with Log.wtf(String, Throwable)
wtf(String, String, Throwable) - Static method in class com.elvishew.xlog.XLog.Log
Deprecated.
compatible with Log.wtf(String, String, Throwable)

X

XLog - Class in com.elvishew.xlog
A log tool which can be used in android or java, the most important feature is it can print the logs to multiple place in the same time, such as android shell, console and file, you can even print the log to the remote server if you want, all of these can be done just within one calling.
XLog.Log - Class in com.elvishew.xlog
Deprecated.
please use XLog instead
xml(String) - Method in class com.elvishew.xlog.Logger.Builder
xml(String) - Method in class com.elvishew.xlog.Logger
Log a XML string, with level LogLevel.DEBUG by default.
xml(String) - Static method in class com.elvishew.xlog.XLog
Log a XML string, with level LogLevel.DEBUG by default.
XmlFormatter - Interface in com.elvishew.xlog.formatter.message.xml
The XML formatter used to format the XML string when log a XML string.
xmlFormatter(XmlFormatter) - Method in class com.elvishew.xlog.LogConfiguration.Builder
Set the XML formatter used when log a XML string.
xmlFormatter - Variable in class com.elvishew.xlog.LogConfiguration
The XML formatter used to format the XML string when log a XML string.
xmlFormatter(XmlFormatter) - Method in class com.elvishew.xlog.Logger.Builder
Set the XML formatter when Logger log a XML string.
xmlFormatter(XmlFormatter) - Static method in class com.elvishew.xlog.XLog
Start to customize a Logger and set the XmlFormatter.
A B C D E F G I J L M N O P R S T V W X 
Skip navigation links