Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  * See the file LICENSE for redistribution information.
  * Copyright (c) 2002, 2013 Oracle and/or its affiliates.  All rights reserved.
JE instances of java.util.logging.Logger are configured to use this implementation of java.util.logging.ConsoleHandler. By default, the handler's level is java.util.logging.Level.OFF. To enable the console output, use the standard java.util.logging.LogManager configuration to set the desired level:
JE augments the java.util.logging API with a JE environment parameter for setting handler levels. This is described in greater detail in href="{@docRoot/../GettingStartedGuide/managelogging.html"> Chapter 12.Administering Berkeley DB Java Edition Applications}

See also:
Chapter 12. Logging
Using JE Trace Logging
public class ConsoleHandler extends java.util.logging.ConsoleHandler {
     * Using a JE specific handler lets us enable and disable output for the
     * entire library, and specify an environment specific format.
    public ConsoleHandler(Formatter formatterEnvironmentImpl envImpl) {
        /* Messages may be formatted with an environment specific tag. */
        Level level = null;
        String propertyName = getClass().getName() + ".level";
        if (envImpl != null) {
            level = 
        } else {
            /* If envImpl instance is null, level is decided by properties. */
            String levelProperty = LoggerUtils.getLoggerProperty(propertyName);
            if (levelProperty == null) {
                level = .;
            } else {
                level = Level.parse(levelProperty);
New to GrepCode? Check out our FAQ X