2016-08-02 23:53:40 +02:00
|
|
|
package eu.univento.commons.logging;
|
|
|
|
|
2017-06-04 13:36:38 +02:00
|
|
|
import eu.univento.commons.messaging.MessageHandler;
|
|
|
|
import eu.univento.commons.server.ServerType;
|
2016-08-02 23:53:40 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @author joethei
|
2016-12-06 19:17:13 +01:00
|
|
|
* @version 1.0
|
2016-08-02 23:53:40 +02:00
|
|
|
*/
|
2016-10-10 13:21:12 +02:00
|
|
|
|
2016-08-02 23:53:40 +02:00
|
|
|
public class LoggingHandler {
|
|
|
|
|
2017-06-04 13:36:38 +02:00
|
|
|
public LoggingHandler() {}
|
2016-10-10 13:21:12 +02:00
|
|
|
|
2017-06-04 13:36:38 +02:00
|
|
|
public void log(ServerType type, String message) {
|
|
|
|
MessageHandler.sendMessage("log." + type.getName(), message);
|
2016-08-02 23:53:40 +02:00
|
|
|
}
|
|
|
|
}
|