Package org.syncany.config
Class Logging
- java.lang.Object
-
- org.syncany.config.Logging
-
public class Logging extends java.lang.Object
The logging class offers convenience functions to initialize and update the application's log options.In particular, it can load the log properties either from a resource or a local file on the file system (
logging.properties
. If a local file is present, it is preferred over the JAR resource.To initialize logging, the
init()
method can be called in thestatic
block of a class, e.g.static { Logging.init(); }
-
-
Constructor Summary
Constructors Constructor Description Logging()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
addGlobalHandler(java.util.logging.Handler targetHandler)
static void
disableLogging()
static void
init()
static void
setGlobalLogLevel(java.util.logging.Level targetLogLevel)
-
-
-
Constructor Detail
-
Logging
public Logging()
-
-
Method Detail
-
init
public static void init()
-
setGlobalLogLevel
public static void setGlobalLogLevel(java.util.logging.Level targetLogLevel)
-
addGlobalHandler
public static void addGlobalHandler(java.util.logging.Handler targetHandler)
-
disableLogging
public static void disableLogging()
-
-