Alachisoft.NCache.Common.Logger.JLinuxLogger Maven / Gradle / Ivy
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package Alachisoft.NCache.Common.Logger;
import Alachisoft.NCache.Common.Enum.EventType;
/**
* @author ayesha_sana
*/
public class JLinuxLogger implements IEventLogger {
private static JLogger _logger = null;
public void initialize(boolean isBridgeLog) {
}
public void setLogger(JLogger fileLogger) {
_logger = fileLogger;
}
@Override
public void LogEvent(String message, EventType msgType) {
try {
if (msgType == EventType.ERROR) {
_logger.Error(message);
} else if (msgType == EventType.INFORMATION) {
_logger.Info(message);
} else if (msgType == EventType.WARNING) {
_logger.Warn(message);
}
} catch (Exception ex) {
//ex.printStackTrace();
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy