public class JDKLogging extends Object
Constructor and Description |
---|
JDKLogging() |
Modifier and Type | Method and Description |
---|---|
static void |
disableLogging()
Disable java.util.logging.
|
static void |
enableConsoleLoggingForOpenDJTool()
Enable JDK logging for OpenDJ tool.
|
static void |
enableLoggingForOpenDJTool(PrintStream stream)
Enable JDK logging in provided
PrintStream for OpenDJ tool. |
static void |
enableVerboseConsoleLoggingForOpenDJ()
Enable JDK logging to stderr at provided level for OpenDJ classes.
|
static Formatter |
getFormatter()
Get a formatter.
|
static String[] |
getOpendDJLoggingRoots()
Returns the packages to be used as root for logging.
|
public JDKLogging()
public static void disableLogging()
public static void enableVerboseConsoleLoggingForOpenDJ()
Error and warning messages will be printed on stderr, other messages will be printed on stdout.
public static void enableConsoleLoggingForOpenDJTool()
Error and warning messages will be printed on stderr, other messages will be printed on stdout. This method should only be used by external tool classes.
public static void enableLoggingForOpenDJTool(PrintStream stream)
PrintStream
for OpenDJ tool.
All messages will be printed on the provided PrintStream
.
This method should only be used by external tool classes.
stream
- The stream to use to print messages.public static Formatter getFormatter()
public static String[] getOpendDJLoggingRoots()
This package covers all OpenDJ classes.
Copyright 2010-2017 ForgeRock AS.