package com.l2jfrozen.util;

import java.util.logging.Logger;

public class LogWrite
{
  private static final Logger _log = Logger.getLogger(LogWrite.class.getName());

  // ERROR //
  public static void add(java.lang.String text, java.lang.String cat)
  {
    // Byte code:
    //   0: new 2	java/util/concurrent/locks/ReentrantLock
    //   3: dup
    //   4: invokespecial 3	java/util/concurrent/locks/ReentrantLock:<init>	()V
    //   7: astore_2
    //   8: aload_2
    //   9: invokeinterface 4 1 0
    //   14: new 5	java/io/File
    //   17: dup
    //   18: ldc 6
    //   20: invokespecial 7	java/io/File:<init>	(Ljava/lang/String;)V
    //   23: invokevirtual 8	java/io/File:mkdirs	()Z
    //   26: pop
    //   27: new 5	java/io/File
    //   30: dup
    //   31: new 9	java/lang/StringBuilder
    //   34: dup
    //   35: invokespecial 10	java/lang/StringBuilder:<init>	()V
    //   38: ldc 6
    //   40: invokevirtual 11	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   43: aload_1
    //   44: ifnull +7 -> 51
    //   47: aload_1
    //   48: goto +5 -> 53
    //   51: ldc 12
    //   53: invokevirtual 11	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   56: ldc 13
    //   58: invokevirtual 11	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   61: invokevirtual 14	java/lang/StringBuilder:toString	()Ljava/lang/String;
    //   64: invokespecial 7	java/io/File:<init>	(Ljava/lang/String;)V
    //   67: astore_3
    //   68: aload_3
    //   69: invokevirtual 15	java/io/File:exists	()Z
    //   72: ifne +64 -> 136
    //   75: aload_3
    //   76: invokevirtual 16	java/io/File:createNewFile	()Z
    //   79: pop
    //   80: goto +56 -> 136
    //   83: astore 4
    //   85: getstatic 18	net/sf/l2j/util/LogWrite:_log	Ljava/util/logging/Logger;
    //   88: new 9	java/lang/StringBuilder
    //   91: dup
    //   92: invokespecial 10	java/lang/StringBuilder:<init>	()V
    //   95: ldc 19
    //   97: invokevirtual 11	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   100: aload_1
    //   101: ifnull +7 -> 108
    //   104: aload_1
    //   105: goto +5 -> 110
    //   108: ldc 20
    //   110: invokevirtual 11	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   113: ldc 21
    //   115: invokevirtual 11	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   118: aload 4
    //   120: invokevirtual 22	java/lang/StringBuilder:append	(Ljava/lang/Object;)Ljava/lang/StringBuilder;
    //   123: invokevirtual 14	java/lang/StringBuilder:toString	()Ljava/lang/String;
    //   126: invokevirtual 23	java/util/logging/Logger:warning	(Ljava/lang/String;)V
    //   129: aload_2
    //   130: invokeinterface 24 1 0
    //   135: return
    //   136: aconst_null
    //   137: astore 4
    //   139: new 25	javolution/text/TextBuilder
    //   142: dup
    //   143: invokespecial 26	javolution/text/TextBuilder:<init>	()V
    //   146: astore 5
    //   148: new 27	java/io/FileWriter
    //   151: dup
    //   152: aload_3
    //   153: iconst_1
    //   154: invokespecial 28	java/io/FileWriter:<init>	(Ljava/io/File;Z)V
    //   157: astore 4
    //   159: aload 5
    //   161: new 9	java/lang/StringBuilder
    //   164: dup
    //   165: invokespecial 10	java/lang/StringBuilder:<init>	()V
    //   168: aload_0
    //   169: invokevirtual 11	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   172: ldc 29
    //   174: invokevirtual 11	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   177: invokevirtual 14	java/lang/StringBuilder:toString	()Ljava/lang/String;
    //   180: invokevirtual 30	javolution/text/TextBuilder:append	(Ljava/lang/String;)Ljavolution/text/TextBuilder;
    //   183: pop
    //   184: aload 4
    //   186: aload 5
    //   188: invokevirtual 31	javolution/text/TextBuilder:toString	()Ljava/lang/String;
    //   191: invokevirtual 32	java/io/FileWriter:write	(Ljava/lang/String;)V
    //   194: aload 4
    //   196: ifnull +8 -> 204
    //   199: aload 4
    //   201: invokevirtual 33	java/io/FileWriter:close	()V
    //   204: aload 5
    //   206: invokevirtual 34	javolution/text/TextBuilder:clear	()Ljavolution/text/TextBuilder;
    //   209: pop
    //   210: goto +109 -> 319
    //   213: astore 6
    //   215: goto +104 -> 319
    //   218: astore 6
    //   220: getstatic 18	net/sf/l2j/util/LogWrite:_log	Ljava/util/logging/Logger;
    //   223: new 9	java/lang/StringBuilder
    //   226: dup
    //   227: invokespecial 10	java/lang/StringBuilder:<init>	()V
    //   230: ldc 19
    //   232: invokevirtual 11	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   235: aload_1
    //   236: ifnull +7 -> 243
    //   239: aload_1
    //   240: goto +5 -> 245
    //   243: ldc 20
    //   245: invokevirtual 11	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   248: ldc 36
    //   250: invokevirtual 11	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   253: aload 6
    //   255: invokevirtual 22	java/lang/StringBuilder:append	(Ljava/lang/Object;)Ljava/lang/StringBuilder;
    //   258: invokevirtual 14	java/lang/StringBuilder:toString	()Ljava/lang/String;
    //   261: invokevirtual 23	java/util/logging/Logger:warning	(Ljava/lang/String;)V
    //   264: aload 6
    //   266: invokevirtual 37	java/io/IOException:printStackTrace	()V
    //   269: aload 4
    //   271: ifnull +8 -> 279
    //   274: aload 4
    //   276: invokevirtual 33	java/io/FileWriter:close	()V
    //   279: aload 5
    //   281: invokevirtual 34	javolution/text/TextBuilder:clear	()Ljavolution/text/TextBuilder;
    //   284: pop
    //   285: goto +34 -> 319
    //   288: astore 6
    //   290: goto +29 -> 319
    //   293: astore 7
    //   295: aload 4
    //   297: ifnull +8 -> 305
    //   300: aload 4
    //   302: invokevirtual 33	java/io/FileWriter:close	()V
    //   305: aload 5
    //   307: invokevirtual 34	javolution/text/TextBuilder:clear	()Ljavolution/text/TextBuilder;
    //   310: pop
    //   311: goto +5 -> 316
    //   314: astore 8
    //   316: aload 7
    //   318: athrow
    //   319: aload_2
    //   320: invokeinterface 24 1 0
    //   325: goto +24 -> 349
    //   328: astore_3
    //   329: aload_2
    //   330: invokeinterface 24 1 0
    //   335: goto +14 -> 349
    //   338: astore 9
    //   340: aload_2
    //   341: invokeinterface 24 1 0
    //   346: aload 9
    //   348: athrow
    //   349: return
    //
    // Exception table:
    //   from	to	target	type
    //   75	80	83	java/io/IOException
    //   194	210	213	java/lang/Exception
    //   148	194	218	java/io/IOException
    //   269	285	288	java/lang/Exception
    //   148	194	293	finally
    //   218	269	293	finally
    //   293	295	293	finally
    //   295	311	314	java/lang/Exception
    //   14	129	328	java/lang/Exception
    //   136	319	328	java/lang/Exception
    //   14	129	338	finally
    //   136	319	338	finally
    //   328	329	338	finally
    //   338	340	338	finally
  }
}