public class LoggerFactory extends Object
Logger
instances. It uses reflection to see what loggers are installed on the system and
tries to find the most appropriate one.
To set the logger to a particular type, set the system property ("com.j256.simplemagic.logger.type") contained in
LOG_TYPE_SYSTEM_PROPERTY
to be one of the values in LogType enum.
Modifier and Type | Field and Description |
---|---|
static String |
LOG_TYPE_SYSTEM_PROPERTY |
Modifier and Type | Method and Description |
---|---|
static Logger |
getLogger(Class<?> clazz)
Return a logger associated with a particular class.
|
static Logger |
getLogger(String className)
Return a logger associated with a particular class name.
|
static String |
getSimpleClassName(String className)
Return the single class name from a class-name string.
|
public static final String LOG_TYPE_SYSTEM_PROPERTY
This content is licensed by Gray Watson under the Creative Commons Attribution-Share Alike 3.0 License.