本文整理匯總了Java中org.eclipse.jetty.util.log.Logger類的典型用法代碼示例。如果您正苦於以下問題:Java Logger類的具體用法?Java Logger怎麽用?Java Logger使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
Logger類屬於org.eclipse.jetty.util.log包,在下文中一共展示了Logger類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: setup
import org.eclipse.jetty.util.log.Logger; //導入依賴的package包/類
@Before
public void setup() throws IllegalAccessException {
servletContext = Mockito.mock(ServletContext.class);
servlet = new BackendProxyServlet() {
/**
*
*/
private static final long serialVersionUID = 1L;
{
_log = Log.getLogger("junit");
}
@Override
public ServletContext getServletContext() {
return servletContext;
}
};
FieldUtils.writeField(servlet, "_log", Mockito.mock(Logger.class), true);
callback = Mockito.mock(Callback.class);
}
示例2: getLogger
import org.eclipse.jetty.util.log.Logger; //導入依賴的package包/類
@Override
public Logger getLogger(String name) {
if ((name == null && this.name == null)
|| (name != null && name.equals(this.name)))
return this;
return new NoLog(name);
}
示例3: log
import org.eclipse.jetty.util.log.Logger; //導入依賴的package包/類
protected Logger log() {
return Log.getLogger("org.avaje.jettyrunner");
}
示例4: getLogger
import org.eclipse.jetty.util.log.Logger; //導入依賴的package包/類
public Logger getLogger(String name) {
return new AndroidLog(name);
}
示例5: getLogger
import org.eclipse.jetty.util.log.Logger; //導入依賴的package包/類
@Override
public Logger getLogger(String name) {
return this;
}
示例6: LogShim
import org.eclipse.jetty.util.log.Logger; //導入依賴的package包/類
public LogShim(java.util.logging.Logger log) {
this.log = log;
}
示例7: newLogger
import org.eclipse.jetty.util.log.Logger; //導入依賴的package包/類
@Override
protected Logger newLogger(String fullname) {
return new LogShim(log);
}
示例8: newLogger
import org.eclipse.jetty.util.log.Logger; //導入依賴的package包/類
@Override
protected Logger newLogger(String s) {
return this;
}
示例9: getLogger
import org.eclipse.jetty.util.log.Logger; //導入依賴的package包/類
@Override
public Logger getLogger(String name) {
return this;
}
示例10: getLogger
import org.eclipse.jetty.util.log.Logger; //導入依賴的package包/類
public Logger getLogger(String name) {
return new JettyAndroidLog(name);
}
示例11: getLogger
import org.eclipse.jetty.util.log.Logger; //導入依賴的package包/類
public Logger getLogger(String name)
{
return this;
}
示例12: getLogger
import org.eclipse.jetty.util.log.Logger; //導入依賴的package包/類
@Override
public Logger getLogger( String name ) {
return this;
}
示例13: getLogger
import org.eclipse.jetty.util.log.Logger; //導入依賴的package包/類
public Logger getLogger(String string) {
return new JettyLog();
}
示例14: newLogger
import org.eclipse.jetty.util.log.Logger; //導入依賴的package包/類
@Override
protected Logger newLogger(final String name) {
return new EclipseErrorLog(name);
}
示例15: getLogger
import org.eclipse.jetty.util.log.Logger; //導入依賴的package包/類
@Override
public Logger getLogger(String s) {
return this;
}