class LoggingService {

    public static void logDebug(String moduleName, String msg) {
        if (Configuration.debugging || logger == null)
            System.out.println(String.format("%s %s : %s (%s)", Thread.currentThread().getName(), moduleName, msg, new Date(System.currentTimeMillis())));
        else {
            logger.logp(Level.FINE,  Thread.currentThread().getName(), moduleName, msg);
        }
    }

    private  LoggingService();

}