public class JettyToCommonsLogger extends Object implements org.eclipse.jetty.util.log.Logger
#printf(String, Object, Object)
method comes from org.mortbay.log.StdErrLog
; the rest handwritten.Modifier and Type | Field and Description |
---|---|
static String |
LOG_NAME
Default log name if none is passed in: "Jetty"
|
Constructor and Description |
---|
JettyToCommonsLogger() |
JettyToCommonsLogger(String name)
Create a log instance from a given name
|
Modifier and Type | Method and Description |
---|---|
void |
debug(String msg,
Object... args) |
void |
debug(String msg,
Throwable th) |
void |
debug(Throwable arg0) |
org.eclipse.jetty.util.log.Logger |
getLogger(String name)
Create a new jetty logger bound to the specific name.
|
String |
getName() |
void |
ignore(Throwable arg0) |
void |
info(String arg0,
Object... arg1) |
void |
info(String arg0,
Throwable arg1) |
void |
info(Throwable arg0) |
boolean |
isDebugEnabled()
Delegate query to the inner log
|
void |
setDebugEnabled(boolean newValue)
Unimplemented method to turn debugging on programmatically.
|
void |
warn(String arg0,
Object... arg1) |
void |
warn(String msg,
Throwable th) |
void |
warn(Throwable arg0) |
public static final String LOG_NAME
public JettyToCommonsLogger()
public JettyToCommonsLogger(String name)
name
- public boolean isDebugEnabled()
isDebugEnabled
in interface org.eclipse.jetty.util.log.Logger
public void setDebugEnabled(boolean newValue)
setDebugEnabled
in interface org.eclipse.jetty.util.log.Logger
public void debug(String msg, Throwable th)
debug
in interface org.eclipse.jetty.util.log.Logger
msg
- th
- public void warn(String msg, Throwable th)
warn
in interface org.eclipse.jetty.util.log.Logger
msg
- th
- public org.eclipse.jetty.util.log.Logger getLogger(String name)
getLogger
in interface org.eclipse.jetty.util.log.Logger
name
- name to look uppublic void debug(Throwable arg0)
debug
in interface org.eclipse.jetty.util.log.Logger
public void debug(String msg, Object... args)
debug
in interface org.eclipse.jetty.util.log.Logger
public String getName()
getName
in interface org.eclipse.jetty.util.log.Logger
public void ignore(Throwable arg0)
ignore
in interface org.eclipse.jetty.util.log.Logger
public void info(Throwable arg0)
info
in interface org.eclipse.jetty.util.log.Logger
public void info(String arg0, Object... arg1)
info
in interface org.eclipse.jetty.util.log.Logger
public void info(String arg0, Throwable arg1)
info
in interface org.eclipse.jetty.util.log.Logger
public void warn(Throwable arg0)
warn
in interface org.eclipse.jetty.util.log.Logger
Copyright © 2013. All rights reserved.