de.fhg.igd.logging.sun
Class SunLogLevel

java.lang.Object
  extended byjava.util.logging.Level
      extended byde.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
 
Fields inherited from class java.util.logging.Level
ALL, CONFIG, FINE, FINER, FINEST, INFO, OFF, SEVERE, WARNING
 
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).
 
Method Summary
static Level parse(String name)
          This is a replacement for Level.parse(java.lang.String).
private  Object readResolve()
          Serialization magic to avoid "doppelgangers" and also for performance optimization.
 
Methods inherited from class java.util.logging.Level
equals, getLocalizedName, getName, getResourceBundleName, hashCode, intValue, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

known_

private static HashSet known_
The set of known log levels defined in LogLevel, applied to the Sun logging mechanism

Constructor Detail

SunLogLevel

protected SunLogLevel(String name,
                      int value)
Create a SunLogLevel and put it into the set of known log levels (if not yet present).

Method Detail

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.