1 23 24 package org.infoglue.cms.util; 25 26 import java.util.Calendar ; 27 import java.util.Map ; 28 import java.util.logging.Logger ; 29 30 31 38 public class FileLogger implements NotificationListener 39 { 40 private final static Logger logger = Logger.getLogger(FileLogger.class.getName()); 41 42 45 46 public FileLogger() 47 { 48 } 49 50 54 55 public void setContextParameters(Map map) 56 { 57 } 58 59 63 64 public void notify(NotificationMessage notificationMessage) 65 { 66 String hostName = "tempHost.se"; 67 String message = "[" + Calendar.getInstance().getTime().toString() + "] - [" + notificationMessage.getSystemUserName() + "@" + hostName + "]:[" + notificationMessage.getName() + "]"; 68 logger.info(message); 69 } 70 71 } 72 | Popular Tags |