public abstract class DMXLoggerFactory extends Object
Factory for producing DMXLogger
implementations at runtime. This class can be used on all platforms to
produce specific implementation for the platform. By default, this factory will produce loggers based on JDK logging,
if no other options are specified.
Particular logging implementation can be specified by invoking setLogPorducer(com.vektorsoft.demux.core.log.DMXLoggerProducer)
method
with appropriate DMXLoggerProducer
implementation. For example, on Android, this factory will produce loggers based on Android Log
class.
Constructor and Description |
---|
DMXLoggerFactory() |
Modifier and Type | Method and Description |
---|---|
static DMXLogger |
getLogger(Class clazz)
Creates new logger for specified class.
|
static DMXLogger |
getLogger(String name)
Creates new logger with a given name.
|
static void |
setLogPorducer(DMXLoggerProducer prod)
Sets an implementatio of
DMXLoggerProducer to use. |
public static DMXLogger getLogger(String name)
name
- logger namepublic static DMXLogger getLogger(Class clazz)
clazz
- class to create logger frompublic static void setLogPorducer(DMXLoggerProducer prod)
DMXLoggerProducer
to use.prod
- producerCopyright © 2012-2014 Vektor Software. All Rights Reserved.