public class Log4j2Logger extends org.eclipse.jetty.util.log.AbstractLogger
To direct Jetty to use this class, set the system property {{org.eclipse.jetty.util.log.class}} to this class name.
From the command line with:
-Dorg.eclipse.jetty.util.log.class = org.apache.logging.log4j.appserver.jetty.Log4j2Logger
Programmatically with:
System.setProperty("org.eclipse.jetty.util.log.class", "org.apache.logging.log4j.appserver.jetty.Log4j2Logger");
Constructor and Description |
---|
Log4j2Logger() |
Log4j2Logger(String name) |
Modifier and Type | Method and Description |
---|---|
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 Log4j2Logger()
public Log4j2Logger(String name)
public boolean isDebugEnabled()
protected org.eclipse.jetty.util.log.Logger newLogger(String fullname)
newLogger
in class org.eclipse.jetty.util.log.AbstractLogger
public void setDebugEnabled(boolean enabled)
Copyright © 1999-1969 The Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.