public final class ThreadLogFormatter extends Formatter
The following config properties are available:
* `org.apache.reef.util.logging.ThreadLogFormatter.format` is a format string for String.format() that takes same arguments and in the same order as the standard SimpleFormatter, plus the thread name: 1. date 2. class and method name 3. logger name 4. logging level 5. message 6. stack trace 7. thread name
* `org.apache.reef.util.logging.ThreadLogFormatter.dropPrefix` contains a comma-separated list of package name prefixes that should be removed from the class name for logging. e.g. value `com.microsoft.,org.apache.` will have the formatter write class `org.apache.reef.util.logging.Config` as `reef.util.logging.Config`. (Note the dot at the end of the prefix).
Constructor and Description |
---|
ThreadLogFormatter() |
public ThreadLogFormatter()
public String format(LogRecord logRecord)
Copyright © 2017 The Apache Software Foundation. All rights reserved.