Package org.opends.server.loggers
Class JDKLogging
- java.lang.Object
-
- org.opends.server.loggers.JDKLogging
-
public class JDKLogging extends Object
Utility class for java.util.logging support.
-
-
Constructor Summary
Constructors Constructor Description JDKLogging()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voiddisableLogging()Disable java.util.logging.static voidenableConsoleLoggingForOpenDJTool()Enable JDK logging for OpenDJ tool.static voidenableLoggingForOpenDJTool(PrintStream stream)Enable JDK logging in providedPrintStreamfor OpenDJ tool.static voidenableVerboseConsoleLoggingForOpenDJ()Enable JDK logging to stderr at provided level for OpenDJ classes.static FormattergetFormatter()Get a formatter.static String[]getOpendDJLoggingRoots()Returns the packages to be used as root for logging.
-
-
-
Method Detail
-
disableLogging
public static void disableLogging()
Disable java.util.logging.
-
enableVerboseConsoleLoggingForOpenDJ
public static void enableVerboseConsoleLoggingForOpenDJ()
Enable JDK logging to stderr at provided level for OpenDJ classes.Error and warning messages will be printed on stderr, other messages will be printed on stdout.
-
enableConsoleLoggingForOpenDJTool
public static void enableConsoleLoggingForOpenDJTool()
Enable JDK logging for OpenDJ tool.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.
-
enableLoggingForOpenDJTool
public static void enableLoggingForOpenDJTool(PrintStream stream)
Enable JDK logging in providedPrintStreamfor OpenDJ tool.All messages will be printed on the provided
PrintStream. This method should only be used by external tool classes.- Parameters:
stream- The stream to use to print messages.
-
getFormatter
public static Formatter getFormatter()
Get a formatter.- Returns:
- a formatter for loggers
-
getOpendDJLoggingRoots
public static String[] getOpendDJLoggingRoots()
Returns the packages to be used as root for logging.This package covers all OpenDJ classes.
- Returns:
- the root packages to log
-
-