package io.crossbar.autobahn.utils;

import java.util.logging.Level;
import java.util.logging.Logger;

import static io.crossbar.autobahn.utils.Globals.DEBUG;

class ABJLogger implements IABLogger {

    private final Logger LOGGER;

    public ABJLogger(String tag) {
        LOGGER = Logger.getLogger(tag);
    }

    @Override
    public void v(String msg) {
        if (DEBUG) LOGGER.log(Level.FINER, msg);
    }

    @Override
    public void v(String msg, Throwable throwable) {
        if (DEBUG) LOGGER.log(Level.FINER, msg, throwable);
    }

    @Override
    public void d(String msg) {
        if (DEBUG) LOGGER.log(Level.FINE, msg);
    }

    @Override
    public void i(String msg) {
        LOGGER.log(Level.INFO, msg);
    }

    @Override
    public void w(String msg) {
        LOGGER.log(Level.WARNING, msg);
    }

    @Override
    public void w(String msg, Throwable throwable) {
        LOGGER.log(Level.WARNING, msg, throwable);
    }

    @Override
    public void e(String msg) {
        LOGGER.log(Level.SEVERE, msg);
    }
}

@@ -376,32 +376,33 @@
 EBUG) LOGGER.log
+p
 (Level.FINER, ms
@@ -394,24 +394,48 @@
 Level.FINER,
+ LOGGER.getName(), null,
  msg);%0A    %7D
@@ -524,32 +524,33 @@
 EBUG) LOGGER.log
+p
 (Level.FINER, ms
@@ -546,16 +546,40 @@
 l.FINER,
+ LOGGER.getName(), null,
  msg, th
@@ -666,24 +666,25 @@
 ) LOGGER.log
+p
 (Level.FINE,
@@ -683,16 +683,40 @@
 el.FINE,
+ LOGGER.getName(), null,
  msg);%0A 
@@ -781,24 +781,25 @@
   LOGGER.log
+p
 (Level.INFO,
@@ -798,16 +798,40 @@
 el.INFO,
+ LOGGER.getName(), null,
  msg);%0A 
@@ -892,32 +892,33 @@
       LOGGER.log
+p
 (Level.WARNING, 
@@ -912,24 +912,48 @@
 vel.WARNING,
+ LOGGER.getName(), null,
  msg);%0A    %7D
@@ -1035,24 +1035,25 @@
   LOGGER.log
+p
 (Level.WARNI
@@ -1055,16 +1055,40 @@
 WARNING,
+ LOGGER.getName(), null,
  msg, th
@@ -1168,16 +1168,17 @@
 GGER.log
+p
 (Level.S
@@ -1183,16 +1183,40 @@
 .SEVERE,
+ LOGGER.getName(), null,
  msg);%0A 

Fix classname in jvm logger (#330)