A B C D E F G I J L M N O P R S T V W X
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- AbstractBackupStrategy - Class in com.elvishew.xlog.printer.file.backup
-
An abstract
BackupStrategy2, simply append '.bak.n' to the end of normal file name when naming a backup with index n. - AbstractBackupStrategy() - Constructor for class com.elvishew.xlog.printer.file.backup.AbstractBackupStrategy
- 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
Loggerlogging. - addInterceptor(Interceptor) - Static method in class com.elvishew.xlog.XLog
-
Start to customize a
Loggerand add an interceptor. - addObjectFormatter(Class<T>, ObjectFormatter<? super T>) - Method in class com.elvishew.xlog.LogConfiguration.Builder
-
Add a
ObjectFormatterfor 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
Loggerlog an object. - addObjectFormatter(Class<T>, ObjectFormatter<? super T>) - Static method in class com.elvishew.xlog.XLog
-
Start to customize a
Loggerand 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
PrinterusingLog. - AndroidPrinter() - Constructor for class com.elvishew.xlog.printer.AndroidPrinter
-
Constructor.
- AndroidPrinter(boolean) - Constructor for class com.elvishew.xlog.printer.AndroidPrinter
-
Constructor.
- AndroidPrinter(boolean, int) - Constructor for class com.elvishew.xlog.printer.AndroidPrinter
-
Constructor.
- AndroidPrinter(int) - Constructor for class com.elvishew.xlog.printer.AndroidPrinter
-
Constructor.
- appendLog(String) - Method in class com.elvishew.xlog.printer.file.writer.SimpleWriter
- appendLog(String) - Method in class com.elvishew.xlog.printer.file.writer.Writer
-
Append the log to the end of the opened log file, normally an extra line separator is needed.
B
- b() - Method in class com.elvishew.xlog.LogConfiguration.Builder
-
Deprecated.use
LogConfiguration.Builder.enableBorder()instead, since 1.7.1 - b() - Method in class com.elvishew.xlog.Logger.Builder
-
Deprecated.use
Logger.Builder.enableBorder()instead, since 1.7.0 - b() - Static method in class com.elvishew.xlog.XLog
-
Deprecated.use
XLog.enableBorder()instead, since 1.7.0 - backup(File, BackupStrategy2) - Static method in class com.elvishew.xlog.internal.printer.file.backup.BackupUtil
-
Shift existed backups if needed, and backup the logging file.
- backupStrategy(BackupStrategy) - Method in class com.elvishew.xlog.printer.file.FilePrinter.Builder
-
Set the backup strategy for log file.
- 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.
- BackupStrategy2 - Interface in com.elvishew.xlog.printer.file.backup
-
Decide whether and how the log file should be backed up and use a new file for next logging.
- BackupStrategyWrapper - Class in com.elvishew.xlog.internal.printer.file.backup
-
Wrap a
BackupStrategyto fit theBackupStrategy2interface, and perform like aBackupStrategywith the old logic before v1.9.0. - BackupStrategyWrapper(BackupStrategy) - Constructor for class com.elvishew.xlog.internal.printer.file.backup.BackupStrategyWrapper
- BackupUtil - Class in com.elvishew.xlog.internal.printer.file.backup
- BackupUtil() - Constructor for class com.elvishew.xlog.internal.printer.file.backup.BackupUtil
- BlacklistTagsFilterInterceptor - Class in com.elvishew.xlog.interceptor
-
Filter out the logs with a tag that is in the blacklist.
- BlacklistTagsFilterInterceptor(Iterable<String>) - Constructor for class com.elvishew.xlog.interceptor.BlacklistTagsFilterInterceptor
-
Constructor
- BlacklistTagsFilterInterceptor(String...) - Constructor for class com.elvishew.xlog.interceptor.BlacklistTagsFilterInterceptor
-
Constructor
- 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
Loggerlogging. - borderFormatter(BorderFormatter) - Static method in class com.elvishew.xlog.XLog
-
Start to customize a
Loggerand set theBorderFormatter. - BorderFormatter - Interface in com.elvishew.xlog.formatter.border
-
The border formatter used to wrap string segments with borders when logging.
- build() - Method in class com.elvishew.xlog.LogConfiguration.Builder
-
Builds configured
LogConfigurationobject. - build() - Method in class com.elvishew.xlog.Logger.Builder
-
Builds configured
Loggerobject. - build() - Method in class com.elvishew.xlog.printer.file.FilePrinter.Builder
-
Build configured
FilePrinterobject. - Builder() - Constructor for class com.elvishew.xlog.LogConfiguration.Builder
-
Construct a builder with all default configurations.
- Builder() - Constructor for class com.elvishew.xlog.Logger.Builder
-
Construct a builder, which will perform the same as the global one by default.
- Builder(LogConfiguration) - Constructor for class com.elvishew.xlog.LogConfiguration.Builder
-
Construct a builder with all configurations from another
LogConfiguration. - 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 ""{d} {l}/{t}: {m}"".
- ClassicFlattener() - Constructor for class com.elvishew.xlog.flattener.ClassicFlattener
- cleanStrategy(CleanStrategy) - Method in class com.elvishew.xlog.printer.file.FilePrinter.Builder
-
Set the clean strategy for log file.
- CleanStrategy - Interface in com.elvishew.xlog.printer.file.clean
-
Decide whether the log file should be clean.
- close() - Method in class com.elvishew.xlog.printer.file.writer.SimpleWriter
- close() - Method in class com.elvishew.xlog.printer.file.writer.Writer
-
Make sure the opened log file is closed, normally called before switching the 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.printer.file.backup - package com.elvishew.xlog.internal.printer.file.backup
- 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.file.writer - package com.elvishew.xlog.printer.file.writer
- 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
PrinterusingSystem.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.
- createWriter() - Static method in class com.elvishew.xlog.internal.DefaultsFactory
-
Create the default writer for
FilePrinter. - 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
-
Convenience of
Logger.Builder.build()andLogger.d(Object). - d(Object) - Method in class com.elvishew.xlog.Logger
-
Log an object with level
LogLevel.DEBUG. - d(Object) - Static method in class com.elvishew.xlog.XLog
-
Log an object with level
LogLevel.DEBUG. - d(Object[]) - Method in class com.elvishew.xlog.Logger.Builder
-
Convenience of
Logger.Builder.build()andLogger.d(Object[]). - d(Object[]) - Method in class com.elvishew.xlog.Logger
-
Log an array with level
LogLevel.DEBUG. - d(Object[]) - Static method in class com.elvishew.xlog.XLog
-
Log an array with level
LogLevel.DEBUG. - d(String) - Method in class com.elvishew.xlog.Logger.Builder
-
Convenience of
Logger.Builder.build()andLogger.d(String). - d(String) - Method in class com.elvishew.xlog.Logger
-
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, Object...) - Method in class com.elvishew.xlog.Logger.Builder
-
Convenience of
Logger.Builder.build()andLogger.d(String, Object...). - d(String, Object...) - Method in class com.elvishew.xlog.Logger
-
Log a message with level
LogLevel.DEBUG. - d(String, Object...) - Static method in class com.elvishew.xlog.XLog
-
Log a message 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) - d(String, Throwable) - Method in class com.elvishew.xlog.Logger.Builder
-
Convenience of
Logger.Builder.build()andLogger.d(String, Throwable). - d(String, Throwable) - Method in class com.elvishew.xlog.Logger
-
Log a message and a throwable 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. - 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
JSONObjectandJSONArray. - DefaultJsonFormatter() - Constructor for class com.elvishew.xlog.formatter.message.json.DefaultJsonFormatter
- DefaultLogFlattener - Class in com.elvishew.xlog.printer.flattener
-
Deprecated.use
DefaultFlattenerinstead, 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 4.
- DefaultXmlFormatter() - Constructor for class com.elvishew.xlog.formatter.message.xml.DefaultXmlFormatter
- disableBorder() - Method in class com.elvishew.xlog.LogConfiguration.Builder
-
Disable border, the log content won't be surrounded by a border.
- disableBorder() - Method in class com.elvishew.xlog.Logger.Builder
-
Disable border, the log content won't be surrounded by a border.
- disableBorder() - Static method in class com.elvishew.xlog.XLog
-
Start to customize a
Loggerand disable border, the log content won't be surrounded by a border. - disableStackTrace() - Method in class com.elvishew.xlog.LogConfiguration.Builder
-
Disable stack trace, the stack trace won't be printed with the log message.
- disableStackTrace() - Method in class com.elvishew.xlog.Logger.Builder
-
Disable stack trace, the stack trace won't be printed with the log message.
- disableStackTrace() - Static method in class com.elvishew.xlog.XLog
-
Start to customize a
Loggerand disable stack trace, the stack trace won't be printed with the log message. - disableThreadInfo() - Method in class com.elvishew.xlog.LogConfiguration.Builder
-
Disable thread info, the thread info won't be printed with the log message.
- disableThreadInfo() - Method in class com.elvishew.xlog.Logger.Builder
-
Disable thread info, the thread info won't be printed with the log message.
- disableThreadInfo() - Static method in class com.elvishew.xlog.XLog
-
Start to customize a
Loggerand disable thread info, the thread info won't be printed with the log message.
E
- e(Object) - Method in class com.elvishew.xlog.Logger.Builder
-
Convenience of
Logger.Builder.build()andLogger.e(Object). - e(Object) - Method in class com.elvishew.xlog.Logger
-
Log an object with level
LogLevel.ERROR. - e(Object) - Static method in class com.elvishew.xlog.XLog
-
Log an object with level
LogLevel.ERROR. - e(Object[]) - Method in class com.elvishew.xlog.Logger.Builder
-
Convenience of
Logger.Builder.build()andLogger.e(Object[]). - e(Object[]) - Method in class com.elvishew.xlog.Logger
-
Log an array with level
LogLevel.ERROR. - e(Object[]) - Static method in class com.elvishew.xlog.XLog
-
Log an array with level
LogLevel.ERROR. - e(String) - Method in class com.elvishew.xlog.Logger.Builder
-
Convenience of
Logger.Builder.build()andLogger.e(String). - e(String) - Method in class com.elvishew.xlog.Logger
-
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, Object...) - Method in class com.elvishew.xlog.Logger.Builder
-
Convenience of
Logger.Builder.build()andLogger.e(String, Object...). - e(String, Object...) - Method in class com.elvishew.xlog.Logger
-
Log a message with level
LogLevel.ERROR. - e(String, Object...) - Static method in class com.elvishew.xlog.XLog
-
Log a message 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) - e(String, Throwable) - Method in class com.elvishew.xlog.Logger.Builder
-
Convenience of
Logger.Builder.build()andLogger.e(String, Throwable). - e(String, Throwable) - Method in class com.elvishew.xlog.Logger
-
Log a message and a throwable 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. - enableBorder() - Method in class com.elvishew.xlog.LogConfiguration.Builder
-
Enable border, the border would surround the entire log content, and separate the log message, thread info and stack trace.
- enableBorder() - Method in class com.elvishew.xlog.Logger.Builder
-
Enable border, the border would surround the entire log content, and separate the log message, thread info and stack trace.
- enableBorder() - Static method in class com.elvishew.xlog.XLog
-
Start to customize a
Loggerand enable border, the border would surround the entire log content, and separate the log message, thread info and stack trace. - enableStackTrace(int) - Method in class com.elvishew.xlog.LogConfiguration.Builder
-
Enable stack trace, the stack trace would be printed with the log message.
- enableStackTrace(int) - Method in class com.elvishew.xlog.Logger.Builder
-
Enable stack trace, the stack trace would be printed with the log message.
- enableStackTrace(int) - Static method in class com.elvishew.xlog.XLog
-
Start to customize a
Loggerand enable stack trace, the stack trace would be printed with the log message. - enableStackTrace(String, int) - Method in class com.elvishew.xlog.LogConfiguration.Builder
-
Enable stack trace, the stack trace would be printed with the log message.
- enableStackTrace(String, int) - Method in class com.elvishew.xlog.Logger.Builder
-
Enable stack trace, the stack trace would be printed with the log message.
- enableStackTrace(String, int) - Static method in class com.elvishew.xlog.XLog
-
Start to customize a
Loggerand enable stack trace, the stack trace would be printed with the log message. - enableThreadInfo() - Method in class com.elvishew.xlog.LogConfiguration.Builder
-
Enable thread info, the thread info would be printed with the log message.
- enableThreadInfo() - Method in class com.elvishew.xlog.Logger.Builder
-
Enable thread info, the thread info would be printed with the log message.
- enableThreadInfo() - Static method in class com.elvishew.xlog.XLog
-
Start to customize a
Loggerand enable thread info, the thread info would be printed with the log message. - error(String) - Method in class com.elvishew.xlog.internal.Platform
- 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
Printerusing file system. - FilePrinter.Builder - Class in com.elvishew.xlog.printer.file
-
Builder for
FilePrinter. - FileSizeBackupStrategy - Class in com.elvishew.xlog.printer.file.backup
-
Deprecated.use
FileSizeBackupStrategy2instead, since 1.9.0. AFileSizeBackupStrategy2allows you to define the max number of backup files - FileSizeBackupStrategy(long) - Constructor for class com.elvishew.xlog.printer.file.backup.FileSizeBackupStrategy
-
Deprecated.Constructor.
- FileSizeBackupStrategy2 - Class in com.elvishew.xlog.printer.file.backup
-
Limit the file size of a max length.
- FileSizeBackupStrategy2(long, int) - Constructor for class com.elvishew.xlog.printer.file.backup.FileSizeBackupStrategy2
-
Constructor.
- flatten(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(int, String, String) - Method in class com.elvishew.xlog.flattener.PatternFlattener
- flatten(long, int, String, String) - Method in class com.elvishew.xlog.flattener.DefaultFlattener
- flatten(long, int, String, String) - Method in interface com.elvishew.xlog.flattener.Flattener2
-
Flatten the log.
- flatten(long, int, String, String) - Method in class com.elvishew.xlog.flattener.PatternFlattener
- flattener(Flattener2) - Method in class com.elvishew.xlog.printer.file.FilePrinter.Builder
-
Set the flattener when print a log.
- Flattener - Interface in com.elvishew.xlog.flattener
-
Deprecated.use
Flattener2instead, since 1.6.0 - 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(Intent) - Method in class com.elvishew.xlog.formatter.message.object.IntentFormatter
-
Format an Intent object to a string.
- format(Bundle) - Method in class com.elvishew.xlog.formatter.message.object.BundleFormatter
-
Format an Bundle object to a string.
- format(StackTraceElement[]) - Method in class com.elvishew.xlog.formatter.stacktrace.DefaultStackTraceFormatter
- format(String) - Method in class com.elvishew.xlog.formatter.message.json.DefaultJsonFormatter
- format(String) - Method in class com.elvishew.xlog.formatter.message.xml.DefaultXmlFormatter
- format(String[]) - Method in class com.elvishew.xlog.formatter.border.DefaultBorderFormatter
- format(Thread) - Method in class com.elvishew.xlog.formatter.thread.DefaultThreadFormatter
- format(Throwable) - Method in class com.elvishew.xlog.formatter.message.throwable.DefaultThrowableFormatter
- format(T) - Method in interface com.elvishew.xlog.formatter.Formatter
-
Format the data to a readable and loggable string.
- 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
FormatExceptionwith no detail message. - FormatException(String) - Constructor for exception com.elvishew.xlog.formatter.FormatException
-
Constructs a
FormatExceptionwith 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
- getBackupFileName(String, int) - Method in class com.elvishew.xlog.internal.printer.file.backup.BackupStrategyWrapper
- getBackupFileName(String, int) - Method in class com.elvishew.xlog.printer.file.backup.AbstractBackupStrategy
- getBackupFileName(String, int) - Method in interface com.elvishew.xlog.printer.file.backup.BackupStrategy2
-
Get the backup file name for specific index.
- 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.
- getMaxBackupIndex() - Method in class com.elvishew.xlog.internal.printer.file.backup.BackupStrategyWrapper
- getMaxBackupIndex() - Method in interface com.elvishew.xlog.printer.file.backup.BackupStrategy2
-
Get the max index of backup.
- getMaxBackupIndex() - Method in class com.elvishew.xlog.printer.file.backup.FileSizeBackupStrategy2
- getObjectFormatter(T) - Method in class com.elvishew.xlog.LogConfiguration
-
Get
ObjectFormatterfor specific object. - getOpenedFile() - Method in class com.elvishew.xlog.printer.file.writer.SimpleWriter
- getOpenedFile() - Method in class com.elvishew.xlog.printer.file.writer.Writer
-
Get the opened log file.
- getOpenedFileName() - Method in class com.elvishew.xlog.printer.file.writer.SimpleWriter
- getOpenedFileName() - Method in class com.elvishew.xlog.printer.file.writer.Writer
-
Get the name of opened log file.
- 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
-
Convenience of
Logger.Builder.build()andLogger.i(Object). - i(Object) - Method in class com.elvishew.xlog.Logger
-
Log an object with level
LogLevel.INFO. - i(Object) - Static method in class com.elvishew.xlog.XLog
-
Log an object with level
LogLevel.INFO. - i(Object[]) - Method in class com.elvishew.xlog.Logger.Builder
-
Convenience of
Logger.Builder.build()andLogger.i(Object[]). - i(Object[]) - Method in class com.elvishew.xlog.Logger
-
Log an array with level
LogLevel.INFO. - i(Object[]) - Static method in class com.elvishew.xlog.XLog
-
Log an array with level
LogLevel.INFO. - i(String) - Method in class com.elvishew.xlog.Logger.Builder
-
Convenience of
Logger.Builder.build()andLogger.i(String). - i(String) - Method in class com.elvishew.xlog.Logger
-
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, Object...) - Method in class com.elvishew.xlog.Logger.Builder
-
Convenience of
Logger.Builder.build()andLogger.i(String, Object...). - i(String, Object...) - Method in class com.elvishew.xlog.Logger
-
Log a message with level
LogLevel.INFO. - i(String, Object...) - Static method in class com.elvishew.xlog.XLog
-
Log a message 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) - i(String, Throwable) - Method in class com.elvishew.xlog.Logger.Builder
-
Convenience of
Logger.Builder.build()andLogger.i(String, Throwable). - i(String, Throwable) - Method in class com.elvishew.xlog.Logger
-
Log a message and a throwable 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. - 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(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(int, Printer...) - Static method in class com.elvishew.xlog.XLog
-
Initialize log system, should be called only once.
- init(LogConfiguration) - Static method in class com.elvishew.xlog.XLog
-
Initialize log system, should be called only once.
- init(LogConfiguration, Printer...) - 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.
- 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) - isOpened() - Method in class com.elvishew.xlog.printer.file.writer.SimpleWriter
- isOpened() - Method in class com.elvishew.xlog.printer.file.writer.Writer
-
Whether a log file is successfully opened in previous
Writer.open(File).
J
- json(String) - Method in class com.elvishew.xlog.Logger.Builder
-
Convenience of
Logger.Builder.build()andLogger.json(String). - json(String) - Method in class com.elvishew.xlog.Logger
-
Log a JSON string, with level
LogLevel.DEBUGby default. - json(String) - Static method in class com.elvishew.xlog.XLog
-
Log a JSON string, with level
LogLevel.DEBUGby default. - 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.LogConfiguration.Builder
-
Set the JSON formatter used when log a JSON string.
- jsonFormatter(JsonFormatter) - Method in class com.elvishew.xlog.Logger.Builder
-
Set the JSON formatter when
Loggerlog a JSON string. - jsonFormatter(JsonFormatter) - Static method in class com.elvishew.xlog.XLog
-
Start to customize a
Loggerand set theJsonFormatter. - JsonFormatter - Interface in com.elvishew.xlog.formatter.message.json
-
The JSON formatter used to format the JSON string when log a JSON string.
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
-
Convenience of
Logger.Builder.build()andLogger.log(int, Object). - log(int, Object) - Method in class com.elvishew.xlog.Logger
-
Log an object 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[]) - Method in class com.elvishew.xlog.Logger.Builder
-
Convenience of
Logger.Builder.build()andLogger.log(int, Object[]). - log(int, Object[]) - Method in class com.elvishew.xlog.Logger
-
Log an array 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) - Method in class com.elvishew.xlog.Logger.Builder
-
Convenience of
Logger.Builder.build()andLogger.log(int, String). - log(int, String) - Method in class com.elvishew.xlog.Logger
-
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, Object...) - Method in class com.elvishew.xlog.Logger.Builder
-
Convenience of
Logger.Builder.build()andLogger.log(int, String, Object...). - log(int, String, Object...) - Method in class com.elvishew.xlog.Logger
-
Log a message 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, Throwable) - Method in class com.elvishew.xlog.Logger.Builder
-
Convenience of
Logger.Builder.build()andLogger.log(int, String, Throwable). - log(int, String, Throwable) - Method in class com.elvishew.xlog.Logger
-
Log a message and a throwable 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
- LogConfiguration.Builder - Class in com.elvishew.xlog
-
Builder for
LogConfiguration. - logFlattener(Flattener) - Method in class com.elvishew.xlog.printer.file.FilePrinter.Builder
-
Deprecated.
Flatteneris deprecated, useFilePrinter.Builder.flattener(Flattener2)instead, since 1.6.0 - LogFlattener - Interface in com.elvishew.xlog.printer.flattener
-
Deprecated.use
Flattenerinstead, 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 - 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.LogConfiguration.Builder
-
Set 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(int) - Static method in class com.elvishew.xlog.XLog
-
Start to customize a
Loggerand set the log level. - LogLevel - Class in com.elvishew.xlog
-
Log level indicate how important the log is.
- LogLevel() - Constructor for class com.elvishew.xlog.LogLevel
- LogUtils - Class in com.elvishew.xlog
-
Utilities for convenience.
- LogUtils() - Constructor for class com.elvishew.xlog.LogUtils
M
N
- nb() - Method in class com.elvishew.xlog.LogConfiguration.Builder
-
Deprecated.use
LogConfiguration.Builder.disableBorder()instead, since 1.7.1 - nb() - Method in class com.elvishew.xlog.Logger.Builder
-
Deprecated.use
Logger.Builder.disableBorder()instead, since 1.7.0 - nb() - Static method in class com.elvishew.xlog.XLog
-
Deprecated.use
XLog.disableBorder()instead, since 1.7.0 - 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
- NO_LIMIT - Static variable in interface com.elvishew.xlog.printer.file.backup.BackupStrategy2
-
Don't limit the backup index, which means there is no limit to the number of backup files.
- 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
-
Deprecated.use
LogConfiguration.Builder.disableStackTrace()instead, since 1.7.1 - nst() - Method in class com.elvishew.xlog.Logger.Builder
-
Deprecated.use
Logger.Builder.disableStackTrace()instead, since 1.7.0 - nst() - Static method in class com.elvishew.xlog.XLog
-
Deprecated.use
XLog.disableStackTrace()instead, since 1.7.0 - nt() - Method in class com.elvishew.xlog.LogConfiguration.Builder
-
Deprecated.use
LogConfiguration.Builder.disableThreadInfo()instead, since 1.7.1 - nt() - Method in class com.elvishew.xlog.Logger.Builder
-
Deprecated.use
Logger.Builder.disableThreadInfo()instead, since 1.7.0 - nt() - Static method in class com.elvishew.xlog.XLog
-
Deprecated.use
XLog.disableThreadInfo()instead, since 1.7.0
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
- onNewFileCreated(File) - Method in class com.elvishew.xlog.printer.file.writer.SimpleWriter
-
Called after a log file is newly created.
- open(File) - Method in class com.elvishew.xlog.printer.file.writer.SimpleWriter
- open(File) - Method in class com.elvishew.xlog.printer.file.writer.Writer
-
Open a specific log file for future writing, if it doesn't exist yet, just create it.
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
Loggerlog. - printers(Printer...) - Static method in class com.elvishew.xlog.XLog
- 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
Printerwhich should print the log to remote server. - RemotePrinter() - Constructor for class com.elvishew.xlog.printer.RemotePrinter
S
- shouldBackup(File) - Method in class com.elvishew.xlog.internal.printer.file.backup.BackupStrategyWrapper
- 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
-
Deprecated.
- shouldBackup(File) - Method in class com.elvishew.xlog.printer.file.backup.FileSizeBackupStrategy2
- 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
- SimpleWriter - Class in com.elvishew.xlog.printer.file.writer
-
A simple implementation of
Writer. - SimpleWriter() - Constructor for class com.elvishew.xlog.printer.file.writer.SimpleWriter
- st(int) - Method in class com.elvishew.xlog.LogConfiguration.Builder
-
Deprecated.use
LogConfiguration.Builder.enableStackTrace(int)instead, since 1.7.1 - st(int) - Method in class com.elvishew.xlog.Logger.Builder
-
Deprecated.use
Logger.Builder.enableStackTrace(int)instead, since 1.7.0 - st(int) - Static method in class com.elvishew.xlog.XLog
-
Deprecated.use
XLog.enableStackTrace(int)instead, since 1.7.0 - st(String, int) - Method in class com.elvishew.xlog.LogConfiguration.Builder
-
Deprecated.use
LogConfiguration.Builder.enableStackTrace(String, int)instead, since 1.7.1 - st(String, int) - Method in class com.elvishew.xlog.Logger.Builder
-
Deprecated.use
Logger.Builder.enableStackTrace(String, int)instead, since 1.7.0 - st(String, int) - Static method in class com.elvishew.xlog.XLog
-
Deprecated.use
XLog.enableStackTrace(String, int)instead, since 1.7.0 - 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 - 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.LogConfiguration.Builder
-
Set the stack trace formatter used when logging.
- stackTraceFormatter(StackTraceFormatter) - Method in class com.elvishew.xlog.Logger.Builder
-
Set the stack trace formatter when
Loggerlogging. - stackTraceFormatter(StackTraceFormatter) - Static method in class com.elvishew.xlog.XLog
-
Start to customize a
Loggerand set theStackTraceFormatter. - StackTraceFormatter - Interface in com.elvishew.xlog.formatter.stacktrace
-
The stack trace formatter used to format the stack trace when logging.
- 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
ConsolePrinterinstead, since 1.3.0 - SystemPrinter() - Constructor for class com.elvishew.xlog.printer.SystemPrinter
-
Deprecated.
T
- t() - Method in class com.elvishew.xlog.LogConfiguration.Builder
-
Deprecated.use
LogConfiguration.Builder.enableThreadInfo()instead, since 1.7.1 - t() - Method in class com.elvishew.xlog.Logger.Builder
-
Deprecated.use
Logger.Builder.enableThreadInfo()instead, since 1.7.0 - t() - Static method in class com.elvishew.xlog.XLog
-
Deprecated.use
XLog.enableThreadInfo()instead, since 1.7.0 - tag - Variable in class com.elvishew.xlog.LogConfiguration
-
The tag string.
- tag - Variable in class com.elvishew.xlog.LogItem
-
The tag, should not be null.
- tag(String) - Method in class com.elvishew.xlog.LogConfiguration.Builder
-
Set the tag string used when log.
- tag(String) - Method in class com.elvishew.xlog.Logger.Builder
-
Set the tag string when
Loggerlog. - tag(String) - Static method in class com.elvishew.xlog.XLog
-
Start to customize a
Loggerand set the tag. - 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.LogConfiguration.Builder
-
Set the thread formatter used when logging.
- threadFormatter(ThreadFormatter) - Method in class com.elvishew.xlog.Logger.Builder
-
Set the thread formatter when
Loggerlogging. - threadFormatter(ThreadFormatter) - Static method in class com.elvishew.xlog.XLog
-
Start to customize a
Loggerand set theThreadFormatter. - ThreadFormatter - Interface in com.elvishew.xlog.formatter.thread
-
The thread formatter used to format the thread info when logging.
- threadInfo - Variable in class com.elvishew.xlog.LogItem
-
The formatted thread info, null if thread info is disabled.
- 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.LogConfiguration.Builder
-
Set the throwable formatter used when log a message with throwable.
- throwableFormatter(ThrowableFormatter) - Method in class com.elvishew.xlog.Logger.Builder
-
Set the throwable formatter when
Loggerlog a message with throwable. - throwableFormatter(ThrowableFormatter) - Static method in class com.elvishew.xlog.XLog
-
Start to customize a
Loggerand set theThrowableFormatter. - ThrowableFormatter - Interface in com.elvishew.xlog.formatter.message.throwable
-
The throwable formatter used to format the throwable when log a message with throwable.
V
- v(Object) - Method in class com.elvishew.xlog.Logger.Builder
-
Convenience of
Logger.Builder.build()andLogger.v(Object). - v(Object) - Method in class com.elvishew.xlog.Logger
-
Log an object with level
LogLevel.VERBOSE. - v(Object) - Static method in class com.elvishew.xlog.XLog
-
Log an object with level
LogLevel.VERBOSE. - v(Object[]) - Method in class com.elvishew.xlog.Logger.Builder
-
Convenience of
Logger.Builder.build()andLogger.v(Object[]). - v(Object[]) - Method in class com.elvishew.xlog.Logger
-
Log an array with level
LogLevel.VERBOSE. - v(Object[]) - Static method in class com.elvishew.xlog.XLog
-
Log an array with level
LogLevel.VERBOSE. - v(String) - Method in class com.elvishew.xlog.Logger.Builder
-
Convenience of
Logger.Builder.build()andLogger.v(String). - v(String) - Method in class com.elvishew.xlog.Logger
-
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, Object...) - Method in class com.elvishew.xlog.Logger.Builder
-
Convenience of
Logger.Builder.build()andLogger.v(String, Object...). - v(String, Object...) - Method in class com.elvishew.xlog.Logger
-
Log a message with level
LogLevel.VERBOSE. - v(String, Object...) - Static method in class com.elvishew.xlog.XLog
-
Log a message 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(String, Throwable) - Method in class com.elvishew.xlog.Logger.Builder
-
Convenience of
Logger.Builder.build()andLogger.v(String, Throwable). - v(String, Throwable) - Method in class com.elvishew.xlog.Logger
-
Log a message and a throwable 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.
- verifyBackupStrategy(BackupStrategy2) - Static method in class com.elvishew.xlog.internal.printer.file.backup.BackupUtil
-
Check if a
BackupStrategy2is valid, will throw a exception if invalid.
W
- w(Object) - Method in class com.elvishew.xlog.Logger.Builder
-
Convenience of
Logger.Builder.build()andLogger.w(Object). - w(Object) - Method in class com.elvishew.xlog.Logger
-
Log an object with level
LogLevel.WARN. - w(Object) - Static method in class com.elvishew.xlog.XLog
-
Log an object with level
LogLevel.WARN. - w(Object[]) - Method in class com.elvishew.xlog.Logger.Builder
-
Convenience of
Logger.Builder.build()andLogger.w(Object[]). - w(Object[]) - Method in class com.elvishew.xlog.Logger
-
Log an array with level
LogLevel.WARN. - w(Object[]) - Static method in class com.elvishew.xlog.XLog
-
Log an array with level
LogLevel.WARN. - w(String) - Method in class com.elvishew.xlog.Logger.Builder
-
Convenience of
Logger.Builder.build()andLogger.w(String). - w(String) - Method in class com.elvishew.xlog.Logger
-
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, Object...) - Method in class com.elvishew.xlog.Logger.Builder
-
Convenience of
Logger.Builder.build()andLogger.w(String, Object...). - w(String, Object...) - Method in class com.elvishew.xlog.Logger
-
Log a message with level
LogLevel.WARN. - w(String, Object...) - Static method in class com.elvishew.xlog.XLog
-
Log a message 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) - Method in class com.elvishew.xlog.Logger.Builder
-
Convenience of
Logger.Builder.build()andLogger.w(String, Throwable). - w(String, Throwable) - Method in class com.elvishew.xlog.Logger
-
Log a message and a throwable with level
LogLevel.WARN. - w(String, Throwable) - Static method in class com.elvishew.xlog.XLog.Log
-
Deprecated.compatible with
Log.w(String, Throwable) - 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(Iterable<String>) - Constructor for class com.elvishew.xlog.interceptor.WhitelistTagsFilterInterceptor
-
Constructor
- WhitelistTagsFilterInterceptor(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.
- writer(Writer) - Method in class com.elvishew.xlog.printer.file.FilePrinter.Builder
-
Set the writer to write log into log file.
- Writer - Class in com.elvishew.xlog.printer.file.writer
-
A writer is used to write log into log file.
- Writer() - Constructor for class com.elvishew.xlog.printer.file.writer.Writer
- wtf(String, String) - Static method in class com.elvishew.xlog.XLog.Log
-
Deprecated.compatible with
Log.wtf(String, String) - wtf(String, String, Throwable) - Static method in class com.elvishew.xlog.XLog.Log
-
Deprecated.compatible with
Log.wtf(String, String, Throwable) - wtf(String, Throwable) - Static method in class com.elvishew.xlog.XLog.Log
-
Deprecated.compatible with
Log.wtf(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
XLoginstead - xml(String) - Method in class com.elvishew.xlog.Logger.Builder
-
Convenience of
Logger.Builder.build()andLogger.xml(String). - xml(String) - Method in class com.elvishew.xlog.Logger
-
Log a XML string, with level
LogLevel.DEBUGby default. - xml(String) - Static method in class com.elvishew.xlog.XLog
-
Log a XML string, with level
LogLevel.DEBUGby default. - 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.LogConfiguration.Builder
-
Set the XML formatter used when log a XML string.
- xmlFormatter(XmlFormatter) - Method in class com.elvishew.xlog.Logger.Builder
-
Set the XML formatter when
Loggerlog a XML string. - xmlFormatter(XmlFormatter) - Static method in class com.elvishew.xlog.XLog
-
Start to customize a
Loggerand set theXmlFormatter. - XmlFormatter - Interface in com.elvishew.xlog.formatter.message.xml
-
The XML formatter used to format the XML string when log a XML string.
All Classes All Packages