org.codehaus.plexus.logging.LoggerManager Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of virtdata-lib-realer Show documentation
Show all versions of virtdata-lib-realer Show documentation
With inspiration from other libraries
package org.codehaus.plexus.logging;
/**
* @author Jason van Zyl
* @author Trygve Laugstøl
* @version $Id: LoggerManager.java 1323 2004-12-20 23:00:59Z jvanzyl $
*/
public interface LoggerManager
{
String ROLE = LoggerManager.class.getName();
/**
* Sets the threshold for all new loggers. It will NOT affect the existing loggers.
*
* This is usually only set once while the logger manager is configured.
*
* @param threshold The new threshold.
*/
void setThreshold( int threshold );
/**
* Returns the current threshold for all new loggers.
*
* @return Returns the current threshold for all new loggers.
*/
int getThreshold();
// The new stuff
void setThreshold( String role, int threshold );
void setThreshold( String role, String roleHint, int threshold );
int getThreshold( String role );
int getThreshold( String role, String roleHint );
Logger getLoggerForComponent( String role );
Logger getLoggerForComponent( String role, String roleHint );
void returnComponentLogger( String role );
void returnComponentLogger( String role, String hint );
int getActiveLoggerCount();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy