/**
 * Copyright (C) 2013 Alexander Szczuczko
 *
 * This file may be modified and distributed under the terms
 * of the MIT license. See the LICENSE file for details.
 */
package ca.szc.keratin.bot.misc;

import org.pmw.tinylog.Configurator;
import org.pmw.tinylog.LoggingLevel;

public class Logging
{

    /**
     * Set tinylog's logging level and output format.
     */
    public static void activateDefaultLoggingConfig()
    {
        String formatPattern = "{date:yyyy-MM-dd HH:mm:ss.SSS} [{thread}] {class}.{method}()  {level}: {message}";
        Configurator.defaultConfig().level( LoggingLevel.TRACE ).formatPattern( formatPattern ).activate();
    }

}

@@ -273,16 +273,74 @@
 Level;%0A%0A
+/**%0A * Set tinylog's logging level and output format.%0A */%0A
 public c
@@ -354,17 +354,16 @@
 gging%0A%7B%0A
-%0A
     /**%0A
@@ -373,54 +373,44 @@
   * 
-Set tinylog's logging level and output format.
+Configure at the given logging level
 %0A   
@@ -449,15 +449,8 @@
 vate
-Default
 Logg
@@ -459,16 +459,39 @@
 gConfig(
+ LoggingLevel logLevel 
 )%0A    %7B%0A
@@ -653,26 +653,16 @@
 el( 
-LoggingLevel.TRACE
+logLevel
  ).f
@@ -710,10 +710,183 @@
 %0A    %7D%0A%0A
+    /**%0A     * Configure at TRACE logging level%0A     */%0A    public static void activateDebugLoggingConfig()%0A    %7B%0A        activateLoggingConfig( LoggingLevel.TRACE );%0A    %7D%0A
 %7D%0A

Allow more than just TRACE logging levels