com.buglabs.osgi.log
Class LogServiceImpl
java.lang.Object
com.buglabs.osgi.log.LogServiceImpl
- All Implemented Interfaces:
- LogReaderService, LogService
public class LogServiceImpl
- extends java.lang.Object
- implements LogService, LogReaderService
This class implements both the LogService and LogReaderServices.
|
Field Summary |
int |
bufferSize
|
static java.io.PrintStream |
err
|
int |
logLevel
Log level that should emit data. |
static java.io.PrintStream |
out
|
boolean |
quiet
If true, no log data should be emitted. |
|
Method Summary |
void |
addLogListener(LogListener arg0)
|
void |
dispose()
|
java.util.Enumeration |
getLog()
|
void |
log(int level,
java.lang.String message)
|
void |
log(int arg0,
java.lang.String arg1,
java.lang.Throwable arg2)
|
void |
log(ServiceReference arg0,
int arg1,
java.lang.String arg2)
|
void |
log(ServiceReference arg0,
int arg1,
java.lang.String arg2,
java.lang.Throwable arg3)
|
void |
removeLogListener(LogListener arg0)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
quiet
public boolean quiet
- If true, no log data should be emitted.
logLevel
public int logLevel
- Log level that should emit data.
out
public static java.io.PrintStream out
err
public static java.io.PrintStream err
bufferSize
public int bufferSize
LogServiceImpl
public LogServiceImpl(BundleContext bundleContext)
dispose
public void dispose()
log
public void log(int level,
java.lang.String message)
- Specified by:
log in interface LogService
log
public void log(int arg0,
java.lang.String arg1,
java.lang.Throwable arg2)
- Specified by:
log in interface LogService
log
public void log(ServiceReference arg0,
int arg1,
java.lang.String arg2)
- Specified by:
log in interface LogService
log
public void log(ServiceReference arg0,
int arg1,
java.lang.String arg2,
java.lang.Throwable arg3)
- Specified by:
log in interface LogService
addLogListener
public void addLogListener(LogListener arg0)
- Specified by:
addLogListener in interface LogReaderService
getLog
public java.util.Enumeration getLog()
- Specified by:
getLog in interface LogReaderService
removeLogListener
public void removeLogListener(LogListener arg0)
- Specified by:
removeLogListener in interface LogReaderService