class LoggingService {

    public static void logWarning(String moduleName, String msg) {
        // TODO commented for now due to Sentry errors capacity
//        EventBuilder builder = new EventBuilder();
//        builder
//                .withLevel(Event.Level.WARNING)
//                .withMessage(msg)
//                .withTag("module", moduleName);
//        Event event = builder.build();
//        Sentry.capture(event);

        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.WARNING,  Thread.currentThread().getName(), moduleName, msg);
        }
    }

    private  LoggingService();

}