// Path: src/main/java/com/dcp/sm/logic/factory/TypeFactory.java
// public enum LOG_LEVEL {
//     DEBUG(0, "DEBUG"),
//     INFO(1, "INFO"),
//     WARN(2, "WARNING"),
//     ERR(3, "ERROR");
//         
//     private int _level;
//     private String _tag;
//     private LOG_LEVEL(int level, String tag)
//     {
//         _level = level;
//         _tag = tag;
//     }
//     @Override
//     public String toString()
//     {
//         return this._tag;
//     }
//         
//     public int value()
//     {
//         return this._level;
//     }
// }


import java.io.PrintStream;
import org.apache.pivot.collections.ArrayList;
import org.apache.pivot.collections.List;
import org.apache.pivot.wtk.ApplicationContext;
import org.apache.pivot.wtk.Component;
import com.dcp.sm.logic.factory.TypeFactory.LOG_LEVEL;
package com.dcp.sm.main.log;





public class Out
{
    //Log
    private static List<String> log = new ArrayList<String>();//Global Log
    public static List<String> getLog() { return log; }
    private static int displayLevel = 1;//logs to display must be >= than this
    
    private static List<String> compileLog = new ArrayList<String>();//Izpack compile Log
    public static List<String> getCompileLog() { return compileLog; }
    
    //Pivot GUI Component Repaint for log update
    private static Component logger = null;
    public static Component getLogger() { return logger; }
    public static void setLogger(Component logger) { Out.logger = logger; }
    
    //Clear the stream cache
    public static void clearCompileLog() {
        compileLog.clear();
    }
    
    //Add a new empty line
    public static void newLine() {
// Path: src/main/java/com/dcp/sm/logic/factory/TypeFactory.java
// public enum LOG_LEVEL {
//     DEBUG(0, "DEBUG"),
//     INFO(1, "INFO"),
//     WARN(2, "WARNING"),
//     ERR(3, "ERROR");
//         
//     private int _level;
//     private String _tag;
//     private LOG_LEVEL(int level, String tag)
//     {
//         _level = level;
//         _tag = tag;
//     }
//     @Override
//     public String toString()
//     {
//         return this._tag;
//     }
//         
//     public int value()
//     {
//         return this._level;
//     }
// }


// Path: src/main/java/com/dcp/sm/main/log/Out.java
import java.io.PrintStream;
import org.apache.pivot.collections.ArrayList;
import org.apache.pivot.collections.List;
import org.apache.pivot.wtk.ApplicationContext;
import org.apache.pivot.wtk.Component;
import com.dcp.sm.logic.factory.TypeFactory.LOG_LEVEL;

package com.dcp.sm.main.log;





public class Out
{
    //Log
    private static List<String> log = new ArrayList<String>();//Global Log
    public static List<String> getLog() { return log; }
    private static int displayLevel = 1;//logs to display must be >= than this
    
    private static List<String> compileLog = new ArrayList<String>();//Izpack compile Log
    public static List<String> getCompileLog() { return compileLog; }
    
    //Pivot GUI Component Repaint for log update
    private static Component logger = null;
    public static Component getLogger() { return logger; }
    public static void setLogger(Component logger) { Out.logger = logger; }
    
    //Clear the stream cache
    public static void clearCompileLog() {
        compileLog.clear();
    }
    
    //Add a new empty line
    public static void newLine() {
        print(LOG_LEVEL.INFO, "");