Modifier and Type | Field and Description |
---|---|
static int |
LEVEL_ALL |
static int |
LEVEL_DEBUG |
static int |
LEVEL_DEFAULT |
static int |
LEVEL_INFO |
static int |
LEVEL_OFF |
static int |
LEVEL_WARN |
Constructor and Description |
---|
AbstractLogger() |
Modifier and Type | Method and Description |
---|---|
protected static java.lang.String |
condensePackageString(java.lang.String classname)
Condenses a classname by stripping down the package name to just the first character of each package name
segment.Configured
|
void |
debug(java.lang.String msg,
long arg)
Formats and logs at debug level.
|
protected static int |
getLevelId(java.lang.String levelSegment,
java.lang.String levelName) |
Logger |
getLogger(java.lang.String name) |
static java.lang.String |
getLoggingProperty(java.util.Properties props,
java.lang.String name,
java.lang.String property) |
static int |
lookupLoggingLevel(java.util.Properties props,
java.lang.String name)
Get the Logging Level for the provided log name.
|
protected abstract Logger |
newLogger(java.lang.String fullname) |
public static final int LEVEL_DEFAULT
public static final int LEVEL_ALL
public static final int LEVEL_DEBUG
public static final int LEVEL_INFO
public static final int LEVEL_WARN
public static final int LEVEL_OFF
public final Logger getLogger(java.lang.String name)
protected abstract Logger newLogger(java.lang.String fullname)
public static int lookupLoggingLevel(java.util.Properties props, java.lang.String name)
props
- the properties to checkname
- the name to get log forpublic static java.lang.String getLoggingProperty(java.util.Properties props, java.lang.String name, java.lang.String property)
protected static int getLevelId(java.lang.String levelSegment, java.lang.String levelName)
protected static java.lang.String condensePackageString(java.lang.String classname)
Examples: "org.eclipse.jetty.test.FooTest" = "oejt.FooTest" "org.eclipse.jetty.server.logging.LogTest" = "orjsl.LogTest"
classname
- the fully qualified class nameCopyright © 1995–2023 Webtide. All rights reserved.