java.lang.Object
org.glassfish.main.jul.cfg.GlassFishLoggingConstants
Constants used to configure the Java Util Logging.
Always remember - you cannot switch the LogManager used in the JVM once any runtime touches the Logger class or the LogManager class. If you want to use GlassFishLogManager, you need to set the system property "java.util.logging.manager" to "org.glassfish.main.jul.GlassFishLogManager" before it happens.
- Author:
- David Matejcek
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final long1 000 000static final StringHandler blocking processing of records until the log manager is reconfigured.static final StringGlassFish's JUL LogManager initializer class namestatic final StringGlassFish's JUL LogManager implementation class namestatic final StringDefault JUL LogManager class namestatic final StringIf the GlassFishLogManager would use defaults as configured by the "java.util.logging.config.useDefaults", this system property tells him to use this level and not the default INFO.static final StringSystem property name defining property file which will be automatically loaded on startup.static final StringSystem property telling the GlassFishLogManager to use defaults if there would not be any logging.properties neither set by "java.util.logging.config.file" nor available on classpath.static final StringSystem property name defining LogManager implementation for the rest of the JVM runtime existence.static final StringIf this key is set to true, GJULE will detect the caller class and method from stacktrace, which is quite expensive operation affecting logging throughput.static final StringEnable printing the source class and method of the LogRecord.static final StringIf this key is set to true, GJULE will print really detailed tracing info to the standard output -
Method Summary
-
Field Details
-
CLASS_LOG_MANAGER_JUL
Default JUL LogManager class name- See Also:
-
CLASS_LOG_MANAGER_GLASSFISH
GlassFish's JUL LogManager implementation class name- See Also:
-
CLASS_INITIALIZER
GlassFish's JUL LogManager initializer class name- See Also:
-
CLASS_HANDLER_BLOCKING
Handler blocking processing of records until the log manager is reconfigured.- See Also:
-
JVM_OPT_LOGGING_MANAGER
System property name defining LogManager implementation for the rest of the JVM runtime existence.- See Also:
-
JVM_OPT_LOGGING_CFG_FILE
System property name defining property file which will be automatically loaded on startup. Usually it is namedlogging.properties- See Also:
-
JVM_OPT_LOGGING_CFG_USE_DEFAULTS
System property telling the GlassFishLogManager to use defaults if there would not be any logging.properties neither set by "java.util.logging.config.file" nor available on classpath.Defaults use the SimpleLogHandler and level INFO or level set by "java.util.logging.config.defaultLevel"
- See Also:
-
JVM_OPT_LOGGING_CFG_DEFAULT_LEVEL
If the GlassFishLogManager would use defaults as configured by the "java.util.logging.config.useDefaults", this system property tells him to use this level and not the default INFO.- See Also:
-
KEY_TRACING_ENABLED
If this key is set to true, GJULE will print really detailed tracing info to the standard output- See Also:
-
KEY_CLASS_AND_METHOD_DETECTION_ENABLED
If this key is set to true, GJULE will detect the caller class and method from stacktrace, which is quite expensive operation affecting logging throughput.If it is set to false, GJULE will not perform such detection.
If the property is not set, GJULE makes the decision based on the (
*.printSourceproperty) - if any formatter requires this feature, the feature is enabled.It is disabled otherwise.
- See Also:
-
KEY_FORMATTER_PRINT_SOURCE_SUFFIX
Enable printing the source class and method of the LogRecord. SeeLogRecord.getSourceClassName()andLogRecord.getSourceMethodName()- See Also:
-
BYTES_PER_MEGABYTES
public static final long BYTES_PER_MEGABYTES1 000 000- See Also:
-