本文整理了Java中org.apache.log.Hierarchy.<init>()
方法的一些代码示例,展示了Hierarchy.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Hierarchy.<init>()
方法的具体详情如下:
包路径:org.apache.log.Hierarchy
类名称:Hierarchy
方法名:<init>
[英]Create a hierarchy object. The default LogTarget writes to stdout.
[中]
代码示例来源:origin: org.apache.excalibur.containerkit/excalibur-logger
/**
* Creates a new <code>DefaultLogKitManager</code>. It will use a new <code>Hierarchy</code>.
*/
public DefaultLogKitManager()
{
this( new Hierarchy() );
}
代码示例来源:origin: org.apache.excalibur.containerkit/excalibur-logger
/**
* Creates a new <code>DefaultLogKitManager</code> using
* specified logger name as root logger.
*/
public DefaultLogKitManager( final String prefix )
{
this( prefix, new Hierarchy() );
}
代码示例来源:origin: stackoverflow.com
Hierarchy hie = new Hierarchy(){}; // this is new implementation for Hierarchy
代码示例来源:origin: stackoverflow.com
Hierarchy hie1 = new Hierarchy();// this will call the constructor of the class
代码示例来源:origin: stackoverflow.com
final LoggerFactory loggerFactory = new LoggerFactory()
{
@Override
public Logger makeNewLoggerInstance(String name)
{
return new MyCustomLogger(name);
// or (if you don't need a custom Logger implementation):
// Logger logger = new Logger(name);
// logger.setSTUFF(...);
// return logger;
}
};
LoggerRepository rep = new Hierarchy(new RootLogger(Level.DEBUG))
{
@Override
public Logger getLogger(String name)
{
return super.getLogger(name, loggerFactory);
}
};
LogManager.setRepositorySelector(new DefaultRepositorySelector(rep), null);
代码示例来源:origin: org.apache.excalibur.containerkit/excalibur-logger
/**
* Assemble a new LoggerManager running on top of LogKit
* configured from a configuration file logging to a supplied
* logger as a fallback.
* Use this method as a sample showing how to assemble your
* own LoggerManager running on top of LogKit flavour.
*/
public static LoggerManager createLogKitConfigurable(
final String prefix, final String switchTo )
{
final org.apache.log.Hierarchy hierarchy = new Hierarchy();
final LoggerManager bare = new LogKitAdapter( hierarchy );
final LoggerManager decorated = applyDecorators( bare, prefix, switchTo );
final LoggerManagerTee tee = new LoggerManagerTee( decorated );
tee.addTee( new LogKitLoggerHelper( hierarchy ) );
tee.addTee( new LogKitConfHelper( hierarchy ) );
tee.makeReadOnly();
return tee;
}
代码示例来源:origin: org.apache.excalibur.containerkit/excalibur-logger
m_hierarchy = new Hierarchy();
m_hierarchy.getRootLogger().unsetLogTargets( true );
final ErrorHandler errorHandler = new OurErrorHandler( getLogger() );
代码示例来源:origin: org.apache.avalon.framework/avalon-framework-impl
final Hierarchy hierarchy = new Hierarchy();
final org.apache.log.Logger logKitLogger = hierarchy.getLoggerFor( "" );
final LogKit2AvalonLoggerAdapter target =
内容来源于网络,如有侵权,请联系作者删除!