public class JettyLogger extends org.eclipse.jetty.util.log.AbstractLogger
Logger
based on Logger
.
Allows Jetty to log to the Java Util logging framework (and thus to the main log file defined in the
Can be used by setting the following system property in the microservice config file.
Constructor and Description |
---|
JettyLogger()
Default constructor.
|
JettyLogger(String name)
Normal constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
debug(String msg,
long arg) |
void |
debug(String msg,
Object... args) |
void |
debug(String msg,
Throwable thrown) |
void |
debug(Throwable thrown) |
String |
getName() |
void |
ignore(Throwable ignored) |
void |
info(String msg,
Object... args) |
void |
info(String msg,
Throwable thrown) |
void |
info(Throwable thrown) |
boolean |
isDebugEnabled() |
protected org.eclipse.jetty.util.log.Logger |
newLogger(String fullname) |
void |
setDebugEnabled(boolean enabled) |
void |
warn(String msg,
Object... args) |
void |
warn(String msg,
Throwable thrown) |
void |
warn(Throwable thrown) |
public JettyLogger()
Returns the logger with name
public JettyLogger(String name)
name
- The logger name.public boolean isDebugEnabled()
public void setDebugEnabled(boolean enabled)
public void debug(String msg, long arg)
debug
in interface org.eclipse.jetty.util.log.Logger
debug
in class org.eclipse.jetty.util.log.AbstractLogger
protected org.eclipse.jetty.util.log.Logger newLogger(String fullname)
newLogger
in class org.eclipse.jetty.util.log.AbstractLogger
Copyright © 2018 Apache. All rights reserved.