|
GridSim 5.0 beta | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectLogging
public class Logging
Implements default logging behaviour in case the user does not specify any.
Method Summary | |
---|---|
static Logger |
getLogger(LoggerEnum log)
Returns the corresponding log object. |
void |
readConfiguration(InputStream ins)
Reinitialise the logging properties and reread the logging configuration from the given stream, which should be in Properties format. |
static void |
setLevel(Level lv)
Sets the logging level for all default loggers. |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Logger getLogger(LoggerEnum log)
log
- the path of logger
public static void setLevel(Level lv)
lv
- the logging levelpublic void readConfiguration(InputStream ins) throws IOException, SecurityException
Properties
format.
Any log level definitions in the new configuration file will be applied using Logger.setLevel(), if the target Logger exists.
ins
- stream to read properties from
IOException
- if there are problems reading from the stream.
SecurityException
- if a security manager exists and if the
caller does not have LoggingPermission("control").
|
GridSim 5.0 beta | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |