@Override public void inLog(String message, LogLevels logLevel, LogInfoTypes logInfoType) { switch (logLevel) { case FATAL: log4j.fatal(String.format("%s: %s", Timer.nowTimeShort(), message)); break; case ERROR: log4j.error(String.format("%s: %s", Timer.nowTimeShort(), message)); break; case WARNING: log4j.warn(String.format("%s: %s", Timer.nowTimeShort(), message)); break; case INFO: log4j.info(String.format("%s: %s", Timer.nowTimeShort(), message)); break; case DEBUG: log4j.debug(String.format("%s: %s", Timer.nowTimeShort(), message)); break; } }
@Override public void inLog(String message, BusinessInfoTypes infoType) { log4j.info(String.format("[%s] %s: %s", infoType, Timer.nowTimeShort(), message)); }