com.googlecode.mobilityrpc.quickstart.util
Class LoggingUtil
java.lang.Object
com.googlecode.mobilityrpc.quickstart.util.LoggingUtil
public class LoggingUtil
- extends Object
Utility methods to configure JDK logging.
These methods will only be used when the framework is run as a standalone server.
Otherwise the framework will use but not configure JDK logging, and as such will use whatever configuration
the host application sets up.
- Author:
- Niall Gallagher
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LoggingUtil
public LoggingUtil()
setPackageLoggingLevel
public static void setPackageLoggingLevel(String packageRoot,
Level level)
- Sets the logging level for all loggers in or a descendant of the package specified, to the level specified.
- Parameters:
packageRoot - The root package to which the logging level should be applied e.g. "com.foo"level - The logging level to apply.
setLibraryLoggingLevel
public static void setLibraryLoggingLevel(Level level)
setSingleLineLoggingFormat
public static void setSingleLineLoggingFormat()
- Sets the logging format for all handlers of the root logger to a single line format.
Copyright © 2016. All rights reserved.