public class Log extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Log.LogLevel
Enum that controls how detailed logging should be.
|
static class |
Log.LogSubject |
| Constructor and Description |
|---|
Log() |
| Modifier and Type | Method and Description |
|---|---|
static void |
initLoggingFromSystemProperties()
Examines logging-related system properties and initializes the logging system if they
have been properly set.
|
static void |
initLoggingToFile(Log.LogLevel level,
String filename) |
static void |
initLoggingToStderr(Log.LogLevel level) |
static void |
initLoggingToStdout(Log.LogLevel level) |
static void |
log(Log.LogLevel level,
Log.LogSubject subject,
String message)
Logs a message at the specified log level.
|
public static void log(Log.LogLevel level, Log.LogSubject subject, String message)
level - (for filtering purposes) level attached to the log invocationmessage - log string to writepublic static void initLoggingFromSystemProperties()
throws IllegalArgumentException
IllegalArgumentExceptionpublic static void initLoggingToStdout(Log.LogLevel level)
public static void initLoggingToStderr(Log.LogLevel level)
public static void initLoggingToFile(Log.LogLevel level, String filename)
Copyright © 2019. All rights reserved.