Package esmska.utils
Class LogSupport
- java.lang.Object
-
- esmska.utils.LogSupport
-
public class LogSupport extends java.lang.ObjectSupport class for configuring logging capabilities
-
-
Constructor Summary
Constructors Constructor Description LogSupport()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidenableHttpClientLogging()Enable debug messages from HttpClient librarystatic java.util.logging.ConsoleHandlergetConsoleHandler()Get handler for writing logs into consolestatic java.util.logging.LoggergetEsmskaLogger()Get main program loggerstatic java.util.logging.FileHandlergetFileHandler()Get handler for writing logs into filestatic voidinit()Initialize logging.static voidinitFileHandler(java.io.File logOutput)Initialize logfile file handler.static voidstoreRecords(boolean store)Whether to rememeber log records (useful for later inicialization of file handler) or not (and erase old ones).
-
-
-
Method Detail
-
init
public static void init()
Initialize logging. Enables console handler. Use at startup.
-
initFileHandler
public static void initFileHandler(java.io.File logOutput) throws java.io.IOExceptionInitialize logfile file handler. Republishes any previously stored records into it.- Parameters:
logOutput- where to log; not null- Throws:
java.io.IOException
-
storeRecords
public static void storeRecords(boolean store)
Whether to rememeber log records (useful for later inicialization of file handler) or not (and erase old ones).
-
getEsmskaLogger
public static java.util.logging.Logger getEsmskaLogger()
Get main program logger
-
getConsoleHandler
public static java.util.logging.ConsoleHandler getConsoleHandler()
Get handler for writing logs into console
-
getFileHandler
public static java.util.logging.FileHandler getFileHandler()
Get handler for writing logs into file
-
enableHttpClientLogging
public static void enableHttpClientLogging()
Enable debug messages from HttpClient library
-
-