| Method from org.jboss.jetty.log.JBossLogSink Detail: |
public void destroy() {
_log = null;
}
|
public String getOptions() {
// return
// (_logTimeStamps?"t":"")+
// (_logLabels?"L":"")+
// (_logTags?"T":"")+
// (_logStackSize?"s":"")+
// (_logStackTrace?"S":"")+
// (_logOneLine?"O":"");
return "";
}
|
public void initialize(Object log) throws InterruptedException {
_log = (Logger) log;
}
|
public boolean isDestroyed() {
return (_log==null);
}
|
public boolean isStarted() {
return _started;
}
|
public synchronized void log(String formattedLog) {
_log.info(formattedLog);
}
Log a message.
The formatted log string is written to the log sink. The default
implementation writes the message to a PrintWriter. |
public void log(String tag,
Object msg,
Frame frame,
long time) {
boolean debugging=Code.debug();
MyLogger logger=(MyLogger)_dispatch.get(tag);
if (logger!=null)
{
logger.log(msg+(debugging?", "+frame:""));
}
else
{
log(msg+" - "+tag+(debugging?", "+frame:""));
_log.warn("JBossLogSink doesn't understand tag: '"+tag+"'");
}
}
Log a message.
This method formats the log information as a string and calls
log(String). It should only be specialized by a derived
implementation if the format of the logged messages is to be changed. |
public void setOptions(String logOptions) {
// setOptions((logOptions.indexOf(OPT_TIMESTAMP) >= 0),
// (logOptions.indexOf(OPT_LABEL) >= 0),
// (logOptions.indexOf(OPT_TAG) >= 0),
// (logOptions.indexOf(OPT_STACKSIZE) >= 0),
// (logOptions.indexOf(OPT_STACKTRACE) >= 0),
// (logOptions.indexOf(OPT_ONELINE) >= 0));
}
|
public void setOptions(String dateFormat,
String timezone,
boolean logTimeStamps,
boolean logLabels,
boolean logTags,
boolean logStackSize,
boolean logStackTrace,
boolean logOneLine) {
// is it possible to translate these into JBoss logging options...?
}
|
public void start() {
_started = true;
}
|
public void stop() throws InterruptedException {
_started = false;
//_log=null;
}
|