public class LogFactory
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static ConsoleSTDOutputHandler |
configureConsoleColourOutput(java.util.logging.Level outputLevel) |
static ConsoleSTDOutputHandler |
configureConsoleSingleLineOutput(java.util.logging.Level outputLevel)
Configures all the JWebMP Loggers to log to console with the given output using the SingleLineFormatter
|
static ConsoleSTDOutputHandler |
configureConsoleSingleLineOutput(java.util.logging.Level outputLevel,
boolean inverted)
Configures all the JWebMP Loggers to log to console with the given output using the SingleLineFormatter
|
static void |
configureDefaultLogHiding()
Sets some of the configurations to a not so floody log
|
ConsoleSTDOutputHandler |
getConsoleLogger()
Returns the console logger
|
static java.util.logging.Level |
getDefaultLevel()
Returns the currently assigned default level
|
static LogFactory |
getInstance()
Returns an instance of the log factory
|
static java.util.logging.Logger |
getLog(java.lang.Class name)
Alias for get logger
|
static java.util.logging.Logger |
getLog(java.lang.String name)
Alias for get logger
|
java.util.logging.Logger |
getLogger(java.lang.String name)
Returns a logger in Async that may or may not log to the console according to configuration
|
static boolean |
isLogToConsole()
If we should ever log to console
|
static void |
setDefaultLevel(java.util.logging.Level level)
Sets the default level on all the loggers currently associated, as well as any future loggers
|
static void |
setGroupLevel(java.lang.String category,
java.util.logging.Level newLevel)
Sets the default level on all the loggers currently associated, as well as any future loggers
|
static void |
setLogToConsole(boolean LogToConsole)
If we should ever log to console
|
public static ConsoleSTDOutputHandler configureConsoleColourOutput(java.util.logging.Level outputLevel)
public static ConsoleSTDOutputHandler configureConsoleSingleLineOutput(java.util.logging.Level outputLevel)
outputLevel - The level to applypublic static ConsoleSTDOutputHandler configureConsoleSingleLineOutput(java.util.logging.Level outputLevel, boolean inverted)
outputLevel - The level to applypublic static void configureDefaultLogHiding()
LogFactory.setGroupLevel("org.hibernate", Level.INFO); LogFactory.setGroupLevel("io.undertow.request", Level.INFO); LogFactory.setGroupLevel("javax.faces.component", Level.INFO); LogFactory.setGroupLevel("com.google.inject", Level.CONFIG); LogFactory.setGroupLevel("org.xnio", Level.INFO); LogFactory.setGroupLevel("btm", Level.INFO); LogFactory.setGroupLevel("com.microsoft.sqlserver.jdbc", Level.INFO); LogFactory.setGroupLevel("com.hazelcast", Level.INFO); LogFactory.setGroupLevel("javax.net", Level.INFO); LogFactory.setGroupLevel("org.apache.cxf", Level.CONFIG); LogFactory.setGroupLevel("jdk.event.security", Level.INFO); LogFactory.setGroupLevel("javax.xml.bind", Level.CONFIG); LogFactory.setGroupLevel("javax.enterprise.resource.webcontainer.jsf", Level.INFO);
public static java.util.logging.Logger getLog(java.lang.String name)
name - Logger name to returnpublic java.util.logging.Logger getLogger(java.lang.String name)
name - Returns the loggerpublic static LogFactory getInstance()
public static java.util.logging.Level getDefaultLevel()
public static void setGroupLevel(java.lang.String category,
java.util.logging.Level newLevel)
newLevel - The default level to apply on all loggers on all registered handlerspublic static void setDefaultLevel(java.util.logging.Level level)
level - The default level to apply on all loggers on all registered handlerspublic static java.util.logging.Logger getLog(java.lang.Class name)
name - Logger name to returnpublic static boolean isLogToConsole()
public static void setLogToConsole(boolean LogToConsole)
LogToConsole - If must log to consolepublic ConsoleSTDOutputHandler getConsoleLogger()
Copyright © 2020 Marc Magon. All rights reserved.