All Downloads are FREE. Search and download functionalities are using the official Maven repository.

Alachisoft.NCache.Common.Logger.ILogger Maven / Gradle / Ivy

There is a newer version: 5.3.3
Show newest version
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();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy