All Classes
-
All Classes Interface Summary Class Summary Exception Summary Class Description AbstractBackupStrategy An abstractBackupStrategy2, simply append '.bak.n' to the end of normal file name when naming a backup with index n.AbstractFilterInterceptor An filter interceptor is used to filter some specific logs out, this filtered logs won't be printed by any printer.AndroidPrinter LogPrinterusingLog.BackupStrategy Decide whether the log file should be backup and use a new file for next logging.BackupStrategy2 Decide whether and how the log file should be backed up and use a new file for next logging.BackupStrategyWrapper Wrap aBackupStrategyto fit theBackupStrategy2interface, and perform like aBackupStrategywith the old logic before v1.9.0.BackupUtil BlacklistTagsFilterInterceptor Filter out the logs with a tag that is in the blacklist.BorderFormatter The border formatter used to wrap string segments with borders when logging.BundleFormatter Format an Bundle object to a string.ChangelessFileNameGenerator Generate a file name that is changeless.ClassicFlattener The classic flattener, flatten the log with pattern ""{d} {l}/{t}: {m}"".CleanStrategy Decide whether the log file should be clean.ConsolePrinter LogPrinterusingSystem.out.println(String).DateFileNameGenerator Generate file name according to the timestamp, different dates will lead to different file names.DefaultBorderFormatter String segments wrapped with borders look like:
╔════════════════════════════════════════════════════════════════════════════
║String segment 1
╟────────────────────────────────────────────────────────────────────────────
║String segment 2
╟────────────────────────────────────────────────────────────────────────────
║String segment 3
╚════════════════════════════════════════════════════════════════════════════DefaultFlattener Simply join the timestamp, log level, tag and message together.DefaultJsonFormatter Simply format the JSON usingJSONObjectandJSONArray.DefaultLogFlattener Deprecated. useDefaultFlattenerinstead, since 1.3.0DefaultsFactory Factory for providing default implementation.DefaultStackTraceFormatter 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)DefaultThreadFormatter Formatted stack trace looks like:
Thread: thread-nameDefaultThrowableFormatter Simply put each stack trace(method name, source file and line number) of the throwable in a single line.DefaultXmlFormatter Simply format the XML with a indent of 4.FileLastModifiedCleanStrategy Limit the file life of a max time.FileNameGenerator Generates names for log files.FilePrinter LogPrinterusing file system.FilePrinter.Builder Builder forFilePrinter.FileSizeBackupStrategy Deprecated. useFileSizeBackupStrategy2instead, since 1.9.0.FileSizeBackupStrategy2 Limit the file size of a max length.Flattener Deprecated. useFlattener2instead, since 1.6.0Flattener2 The flattener used to flatten log elements(log time milliseconds, level, tag and message) to a single CharSequence.FormatException Thrown to indicate that the format of the data is something wrong.Formatter<T> 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.IntentFormatter Format an Intent object to a string.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.JsonFormatter The JSON formatter used to format the JSON string when log a JSON string.LevelFileNameGenerator Generate file name according to the log level, different levels lead to different file names.LogConfiguration LogConfiguration.Builder Builder forLogConfiguration.LogFlattener Deprecated. useFlattenerinstead, since 1.3.0Logger A logger is used to do the real logging work, can use multiple log printers to print the log.Logger.Builder Builder forLogger.LogItem Represent a single log going to be printed.LogLevel Log level indicate how important the log is.LogUtils Utilities for convenience.NeverBackupStrategy Never backup the log file.NeverCleanStrategy Never Limit the file life.ObjectFormatter<T> The Object formatter used to format an object to a string.ObjectToStringUtil Utility for formatting object to string.PatternFlattener Flatten the log using the format specified by pattern.Platform Printer A printer is used for printing the log to somewhere, like android shell, terminal or file system.PrinterSet 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.RemotePrinter LogPrinterwhich should print the log to remote server.SimpleWriter A simple implementation ofWriter.StackTraceFormatter The stack trace formatter used to format the stack trace when logging.StackTraceUtil Utility related with stack trace.SystemCompat System environment.SystemPrinter Deprecated. useConsolePrinterinstead, since 1.3.0ThreadFormatter The thread formatter used to format the thread info when logging.ThrowableFormatter The throwable formatter used to format the throwable when log a message with throwable.WhitelistTagsFilterInterceptor Filter out the logs with a tag that is NOT in the whitelist.Writer A writer is used to write log into log file.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 Deprecated. please useXLoginsteadXmlFormatter The XML formatter used to format the XML string when log a XML string.