Alachisoft.NCache.Common.Logger.ILogger Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nc-common Show documentation
Show all versions of nc-common Show documentation
Internal package of Alachisoft.
package Alachisoft.NCache.Common.Logger;
public interface ILogger extends AutoCloseable {
/**
* Start the cache logging functionality.
*/
String Initialize(java.util.Map properties, String partitionID, String cacheName) throws Exception;
/**
* Start the cache logging functionality.
*/
String Initialize(java.util.Map properties, String partitionID, String cacheName, boolean isStartedAsMirror, boolean inproc) throws Exception;
/**
* intitializes Known name based log files (will not log License Logs at service Startup
*
* @param loggerName Enum of Known loggerNames
*/
void Initialize(LoggerNames loggerName) throws Exception;
/**
* intitializes Known name based log files
*
* @param loggerName Enum of Known loggerNames
* @param cacheName cacheName if Clientcache logging, if not ClientCache, use the other override
*/
void Initialize(LoggerNames loggerNameEnum, String cacheName) throws Exception;
/**
* Stop the cache logging functionality.
*/
void close();
void Flush();
void SetLevel(String levelName);
void Error(String message);
void Error(String module, String message);
void Fatal(String message);
void Fatal(String module, String message);
void CriticalInfo(String message);
void CriticalInfo(String module, String message);
void DevTrace(String message);
void DevTrace(String module, String message);
void Info(String message);
void Info(String module, String message);
void Debug(String message);
void Debug(String module, String message);
void Warn(String message);
void Warn(String module, String message);
boolean getIsInfoEnabled();
boolean getIsErrorEnabled();
boolean getIsWarnEnabled();
boolean getIsDebugEnabled();
boolean getIsFatalEnabled();
}