package org.craft.utils;

import java.io.*;
import java.text.*;
import java.util.logging.*;

public class LogFormater extends Formatter
{
    private SimpleDateFormat dataformat;

    protected LogFormater()
    {
        this.dataformat = new SimpleDateFormat("[HH:mm:ss]");
    }

    public String format(LogRecord par1LogRecord)
    {
        StringBuilder stringbuilder = new StringBuilder();
        stringbuilder.append(this.dataformat.format(Long.valueOf(par1LogRecord
                .getMillis())));
        stringbuilder.append(" [Client]");

        stringbuilder.append(" [").append(par1LogRecord.getLevel().getName())
                .append("] ");
        stringbuilder.append(this.formatMessage(par1LogRecord));
        stringbuilder.append('\n');
        Throwable throwable = par1LogRecord.getThrown();

        if(throwable != null)
        {
            StringWriter stringwriter = new StringWriter();
            throwable.printStackTrace(new PrintWriter(stringwriter));
            stringbuilder.append(stringwriter.toString());
        }

        return stringbuilder.toString();
    }
}

@@ -545,46 +545,9 @@
 ient
-%5D%22);%0A%0A        stringbuilder.append(%22 %5B
+/
 %22).a
@@ -587,33 +587,16 @@
 tName())
-%0A                
 .append(
@@ -598,24 +598,25 @@
 pend(%22%5D %22);%0A
+%0A
         stri

Change Log Format