de.fhg.igd.logging.sun
Class SunLogLevel
java.lang.Object
java.util.logging.Level
de.fhg.igd.logging.sun.SunLogLevel
- All Implemented Interfaces:
- Serializable
- public class SunLogLevel
- extends Level
This is an extention of the Level
class that comes with the
Sun package. It automatically gets initialized with
LogLevel.getAll()
.
- Version:
- "$Id: SunLogLevel.java 1913 2007-08-08 02:41:53Z jpeters $"
- Author:
- Matthias Pressfreund
- See Also:
- Serialized Form
Field Summary |
private static HashSet |
known_
The set of known log levels defined in LogLevel ,
applied to the Sun logging mechanism |
Constructor Summary |
protected |
SunLogLevel(String name,
int value)
Create a SunLogLevel and put it into the set of
known log levels (if not yet present). |
known_
private static HashSet known_
- The set of known log levels defined in
LogLevel
,
applied to the Sun logging mechanism
SunLogLevel
protected SunLogLevel(String name,
int value)
- Create a
SunLogLevel
and put it into the set of
known log levels (if not yet present).
parse
public static Level parse(String name)
- This is a replacement for
Level.parse(java.lang.String)
. It only detects levels
defined within LogLevel
and returns null
if the
identification of the given name fails.
- Parameters:
name
- The name or priority of a LogLevel
- Returns:
- The identified
Level
or
null
if the identification failed
readResolve
private Object readResolve()
throws InvalidObjectException
- Serialization magic to avoid "doppelgangers" and also for
performance optimization.
- Throws:
InvalidObjectException
- if the deserialized SunLogLevel
does not exist
Copyright © Fraunhofer Gesellschaft. All
Rights Reserved.