public class org.jruby.util.log.LoggerFactory
  minor version: 0
  major version: 59
  flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
  this_class: org.jruby.util.log.LoggerFactory
  super_class: java.lang.Object
{
  static final java.lang.String LOGGER_CLASS;
    descriptor: Ljava/lang/String;
    flags: (0x0018) ACC_STATIC, ACC_FINAL

  static final java.lang.String BACKUP_LOGGER_CLASS;
    descriptor: Ljava/lang/String;
    flags: (0x0018) ACC_STATIC, ACC_FINAL
    ConstantValue: "org.jruby.util.log.StandardErrorLogger"

  static final java.lang.reflect.Constructor<? extends org.jruby.util.log.Logger> LOGGER;
    descriptor: Ljava/lang/reflect/Constructor;
    flags: (0x0018) ACC_STATIC, ACC_FINAL
    Signature: Ljava/lang/reflect/Constructor<+Lorg/jruby/util/log/Logger;>;

  static final java.lang.reflect.Constructor<? extends org.jruby.util.log.Logger> LOGGER_OLD;
    descriptor: Ljava/lang/reflect/Constructor;
    flags: (0x0018) ACC_STATIC, ACC_FINAL
    Signature: Ljava/lang/reflect/Constructor<+Lorg/jruby/util/log/Logger;>;

  static void <clinit>();
    descriptor: ()V
    flags: (0x0008) ACC_STATIC
    Code:
      stack=3, locals=0, args_size=0
         0: .line 36
            getstatic org.jruby.util.cli.Options.LOGGER_CLASS:Lcom/headius/options/Option;
            invokevirtual com.headius.options.Option.load:()Ljava/lang/Object;
            checkcast java.lang.String
            putstatic org.jruby.util.log.LoggerFactory.LOGGER_CLASS:Ljava/lang/String;
         1: .line 43
            getstatic org.jruby.util.log.LoggerFactory.LOGGER_CLASS:Ljava/lang/String;
            ldc Ljava/lang/Class;
            iconst_1
            invokestatic org.jruby.util.log.LoggerFactory.resolveLoggerConstructor:(Ljava/lang/String;Ljava/lang/Class;Z)Ljava/lang/reflect/Constructor;
            putstatic org.jruby.util.log.LoggerFactory.LOGGER:Ljava/lang/reflect/Constructor;
         2: .line 45
            getstatic org.jruby.util.log.LoggerFactory.LOGGER:Ljava/lang/reflect/Constructor;
            ifnonnull 5
         3: .line 46
            getstatic org.jruby.util.log.LoggerFactory.LOGGER_CLASS:Ljava/lang/String;
            ldc Ljava/lang/String;
            iconst_0
            invokestatic org.jruby.util.log.LoggerFactory.resolveLoggerConstructor:(Ljava/lang/String;Ljava/lang/Class;Z)Ljava/lang/reflect/Constructor;
            putstatic org.jruby.util.log.LoggerFactory.LOGGER_OLD:Ljava/lang/reflect/Constructor;
         4: .line 47
            goto 6
         5: .line 49
      StackMap locals:
      StackMap stack:
            getstatic org.jruby.util.log.LoggerFactory.LOGGER_CLASS:Ljava/lang/String;
            ldc Ljava/lang/String;
            iconst_1
            invokestatic org.jruby.util.log.LoggerFactory.resolveLoggerConstructor:(Ljava/lang/String;Ljava/lang/Class;Z)Ljava/lang/reflect/Constructor;
            putstatic org.jruby.util.log.LoggerFactory.LOGGER_OLD:Ljava/lang/reflect/Constructor;
         6: .line 51
      StackMap locals:
      StackMap stack:
            return
      LocalVariableTable:
        Start  End  Slot  Name  Signature

  public void <init>();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // org.jruby.util.log.LoggerFactory this
         0: .line 34
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
            return
        end local 0 // org.jruby.util.log.LoggerFactory this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lorg/jruby/util/log/LoggerFactory;

  static java.lang.reflect.Constructor<? extends org.jruby.util.log.Logger> resolveLoggerConstructor(java.lang.String, java.lang.Class<?>, boolean);
    descriptor: (Ljava/lang/String;Ljava/lang/Class;Z)Ljava/lang/reflect/Constructor;
    flags: (0x0008) ACC_STATIC
    Code:
      stack=5, locals=8, args_size=3
        start local 0 // java.lang.String className
        start local 1 // java.lang.Class paramType
        start local 2 // boolean allowNoSuchMethod
         0: .line 56
            aload 1 /* paramType */
            ldc Ljava/lang/String;
            if_acmpne 2
         1: .line 57
            ldc Lorg/jruby/util/log/LoggerFactory;
            invokevirtual java.lang.Class.getSimpleName:()Ljava/lang/String;
            goto 3
      StackMap locals:
      StackMap stack:
         2: ldc Lorg/jruby/util/log/LoggerFactory;
         3: .line 56
      StackMap locals:
      StackMap stack: java.io.Serializable
            astore 4 /* param */
        start local 4 // java.lang.Object param
         4: .line 60
            aload 0 /* className */
            invokestatic java.lang.Class.forName:(Ljava/lang/String;)Ljava/lang/Class;
            astore 5 /* klass */
        start local 5 // java.lang.Class klass
         5: .line 61
            aload 5 /* klass */
            iconst_1
            anewarray java.lang.Class
            dup
            iconst_0
            aload 1 /* paramType */
            aastore
            invokevirtual java.lang.Class.getDeclaredConstructor:([Ljava/lang/Class;)Ljava/lang/reflect/Constructor;
            astore 3 /* loggerCtor */
        start local 3 // java.lang.reflect.Constructor loggerCtor
         6: .line 62
            aload 3 /* loggerCtor */
            iconst_1
            anewarray java.lang.Object
            dup
            iconst_0
            aload 4 /* param */
            aastore
            invokevirtual java.lang.reflect.Constructor.newInstance:([Ljava/lang/Object;)Ljava/lang/Object;
            pop
        end local 5 // java.lang.Class klass
         7: .line 63
            goto 18
        end local 3 // java.lang.reflect.Constructor loggerCtor
         8: .line 64
      StackMap locals: java.lang.String java.lang.Class int top java.lang.Object
      StackMap stack: java.lang.Exception
            astore 5 /* ex */
        start local 5 // java.lang.Exception ex
         9: .line 65
            iload 2 /* allowNoSuchMethod */
            ifeq 11
            aload 5 /* ex */
            instanceof java.lang.NoSuchMethodException
            ifeq 11
        10: .line 66
            aconst_null
            areturn
        11: .line 70
      StackMap locals: java.lang.Exception
      StackMap stack:
            ldc "org.jruby.util.log.StandardErrorLogger"
            invokestatic java.lang.Class.forName:(Ljava/lang/String;)Ljava/lang/Class;
            astore 6 /* klass */
        start local 6 // java.lang.Class klass
        12: .line 71
            aload 6 /* klass */
            iconst_1
            anewarray java.lang.Class
            dup
            iconst_0
            aload 1 /* paramType */
            aastore
            invokevirtual java.lang.Class.getDeclaredConstructor:([Ljava/lang/Class;)Ljava/lang/reflect/Constructor;
            astore 3 /* loggerCtor */
        start local 3 // java.lang.reflect.Constructor loggerCtor
        13: .line 72
            aload 3 /* loggerCtor */
            iconst_1
            anewarray java.lang.Object
            dup
            iconst_0
            aload 4 /* param */
            aastore
            invokevirtual java.lang.reflect.Constructor.newInstance:([Ljava/lang/Object;)Ljava/lang/Object;
            checkcast org.jruby.util.log.Logger
            astore 7 /* log */
        start local 7 // org.jruby.util.log.Logger log
        14: .line 74
            aload 7 /* log */
            new java.lang.StringBuilder
            dup
            ldc "failed to create logger \""
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            aload 0 /* className */
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            ldc "\", using \""
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            ldc "org.jruby.util.log.StandardErrorLogger"
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            ldc "\""
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            iconst_0
            anewarray java.lang.Object
            invokeinterface org.jruby.util.log.Logger.info:(Ljava/lang/String;[Ljava/lang/Object;)V
        end local 7 // org.jruby.util.log.Logger log
        end local 6 // java.lang.Class klass
        15: .line 75
            goto 18
        end local 3 // java.lang.reflect.Constructor loggerCtor
        16: .line 76
      StackMap locals:
      StackMap stack: java.lang.Exception
            pop
        17: .line 77
            new java.lang.IllegalStateException
            dup
            ldc "unable to instantiate any logger"
            aload 5 /* ex */
            invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
            athrow
        end local 5 // java.lang.Exception ex
        start local 3 // java.lang.reflect.Constructor loggerCtor
        18: .line 80
      StackMap locals: java.lang.String java.lang.Class int java.lang.reflect.Constructor java.lang.Object
      StackMap stack:
            aload 3 /* loggerCtor */
            areturn
        end local 4 // java.lang.Object param
        end local 3 // java.lang.reflect.Constructor loggerCtor
        end local 2 // boolean allowNoSuchMethod
        end local 1 // java.lang.Class paramType
        end local 0 // java.lang.String className
      LocalVariableTable:
        Start  End  Slot               Name  Signature
            0   19     0          className  Ljava/lang/String;
            0   19     1          paramType  Ljava/lang/Class<*>;
            0   19     2  allowNoSuchMethod  Z
            6    8     3         loggerCtor  Ljava/lang/reflect/Constructor<+Lorg/jruby/util/log/Logger;>;
           13   16     3         loggerCtor  Ljava/lang/reflect/Constructor<+Lorg/jruby/util/log/Logger;>;
           18   19     3         loggerCtor  Ljava/lang/reflect/Constructor<+Lorg/jruby/util/log/Logger;>;
            4   19     4              param  Ljava/lang/Object;
            5    7     5              klass  Ljava/lang/Class<+Lorg/jruby/util/log/Logger;>;
            9   18     5                 ex  Ljava/lang/Exception;
           12   15     6              klass  Ljava/lang/Class<+Lorg/jruby/util/log/Logger;>;
           14   15     7                log  Lorg/jruby/util/log/Logger;
      Exception table:
        from    to  target  type
           4     7       8  Class java.lang.Exception
          11    15      16  Class java.lang.Exception
    Signature: (Ljava/lang/String;Ljava/lang/Class<*>;Z)Ljava/lang/reflect/Constructor<+Lorg/jruby/util/log/Logger;>;
    MethodParameters:
                   Name  Flags
      className          final
      paramType          final
      allowNoSuchMethod  

  public static org.jruby.util.log.Logger getLogger(java.lang.Class<?>);
    descriptor: (Ljava/lang/Class;)Lorg/jruby/util/log/Logger;
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=5, locals=2, args_size=1
        start local 0 // java.lang.Class loggerClass
         0: .line 84
            getstatic org.jruby.util.log.LoggerFactory.LOGGER:Ljava/lang/reflect/Constructor;
            ifnonnull 2
         1: .line 85
            aload 0 /* loggerClass */
            invokevirtual java.lang.Class.getName:()Ljava/lang/String;
            invokestatic org.jruby.util.log.LoggerFactory.getLogger:(Ljava/lang/String;)Lorg/jruby/util/log/Logger;
            areturn
         2: .line 88
      StackMap locals:
      StackMap stack:
            getstatic org.jruby.util.log.LoggerFactory.LOGGER:Ljava/lang/reflect/Constructor;
            iconst_1
            anewarray java.lang.Object
            dup
            iconst_0
            aload 0 /* loggerClass */
            aastore
            invokevirtual java.lang.reflect.Constructor.newInstance:([Ljava/lang/Object;)Ljava/lang/Object;
            checkcast org.jruby.util.log.Logger
         3: areturn
         4: .line 90
      StackMap locals:
      StackMap stack: java.lang.Exception
            astore 1 /* ex */
        start local 1 // java.lang.Exception ex
         5: .line 91
            aload 0 /* loggerClass */
            aload 1 /* ex */
            invokestatic org.jruby.util.log.LoggerFactory.getLoggerFallback:(Ljava/lang/Class;Ljava/lang/Exception;)Lorg/jruby/util/log/Logger;
            areturn
        end local 1 // java.lang.Exception ex
        end local 0 // java.lang.Class loggerClass
      LocalVariableTable:
        Start  End  Slot         Name  Signature
            0    6     0  loggerClass  Ljava/lang/Class<*>;
            5    6     1           ex  Ljava/lang/Exception;
      Exception table:
        from    to  target  type
           2     3       4  Class java.lang.Exception
    Signature: (Ljava/lang/Class<*>;)Lorg/jruby/util/log/Logger;
    MethodParameters:
             Name  Flags
      loggerClass  

  public static org.jruby.util.log.Logger getLogger(java.lang.String);
    descriptor: (Ljava/lang/String;)Lorg/jruby/util/log/Logger;
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=5, locals=2, args_size=1
        start local 0 // java.lang.String loggerName
         0: .line 100
            getstatic org.jruby.util.log.LoggerFactory.LOGGER_OLD:Ljava/lang/reflect/Constructor;
            iconst_1
            anewarray java.lang.Object
            dup
            iconst_0
            aload 0 /* loggerName */
            aastore
            invokevirtual java.lang.reflect.Constructor.newInstance:([Ljava/lang/Object;)Ljava/lang/Object;
            checkcast org.jruby.util.log.Logger
         1: areturn
         2: .line 102
      StackMap locals:
      StackMap stack: java.lang.Exception
            astore 1 /* ex */
        start local 1 // java.lang.Exception ex
         3: .line 103
            aload 0 /* loggerName */
            aload 1 /* ex */
            invokestatic org.jruby.util.log.LoggerFactory.getLoggerFallback:(Ljava/lang/String;Ljava/lang/Exception;)Lorg/jruby/util/log/Logger;
            areturn
        end local 1 // java.lang.Exception ex
        end local 0 // java.lang.String loggerName
      LocalVariableTable:
        Start  End  Slot        Name  Signature
            0    4     0  loggerName  Ljava/lang/String;
            3    4     1          ex  Ljava/lang/Exception;
      Exception table:
        from    to  target  type
           0     1       2  Class java.lang.Exception
    MethodParameters:
            Name  Flags
      loggerName  

  private static org.jruby.util.log.Logger getLoggerFallback(java.lang.String, java.lang.Exception);
    descriptor: (Ljava/lang/String;Ljava/lang/Exception;)Lorg/jruby/util/log/Logger;
    flags: (0x000a) ACC_PRIVATE, ACC_STATIC
    Code:
      stack=4, locals=3, args_size=2
        start local 0 // java.lang.String loggerName
        start local 1 // java.lang.Exception ex
         0: .line 108
            aload 1 /* ex */
            astore 2 /* rootCause */
        start local 2 // java.lang.Throwable rootCause
         1: .line 110
            goto 3
         2: .line 111
      StackMap locals: java.lang.Throwable
      StackMap stack:
            aload 2 /* rootCause */
            invokevirtual java.lang.Throwable.getCause:()Ljava/lang/Throwable;
            astore 2 /* rootCause */
         3: .line 110
      StackMap locals:
      StackMap stack:
            aload 2 /* rootCause */
            invokevirtual java.lang.Throwable.getCause:()Ljava/lang/Throwable;
            ifnonnull 2
         4: .line 114
            aload 2 /* rootCause */
            instanceof java.lang.SecurityException
            ifeq 6
         5: .line 115
            new org.jruby.util.log.StandardErrorLogger
            dup
            aload 0 /* loggerName */
            invokespecial org.jruby.util.log.StandardErrorLogger.<init>:(Ljava/lang/String;)V
            areturn
         6: .line 118
      StackMap locals:
      StackMap stack:
            new java.lang.IllegalStateException
            dup
            ldc "unable to instantiate logger"
            aload 1 /* ex */
            invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
            athrow
        end local 2 // java.lang.Throwable rootCause
        end local 1 // java.lang.Exception ex
        end local 0 // java.lang.String loggerName
      LocalVariableTable:
        Start  End  Slot        Name  Signature
            0    7     0  loggerName  Ljava/lang/String;
            0    7     1          ex  Ljava/lang/Exception;
            1    7     2   rootCause  Ljava/lang/Throwable;
    MethodParameters:
            Name  Flags
      loggerName  final
      ex          final

  private static org.jruby.util.log.Logger getLoggerFallback(java.lang.Class, java.lang.Exception);
    descriptor: (Ljava/lang/Class;Ljava/lang/Exception;)Lorg/jruby/util/log/Logger;
    flags: (0x000a) ACC_PRIVATE, ACC_STATIC
    Code:
      stack=4, locals=3, args_size=2
        start local 0 // java.lang.Class loggerClass
        start local 1 // java.lang.Exception ex
         0: .line 122
            aload 1 /* ex */
            astore 2 /* rootCause */
        start local 2 // java.lang.Throwable rootCause
         1: .line 124
            goto 3
         2: .line 125
      StackMap locals: java.lang.Throwable
      StackMap stack:
            aload 2 /* rootCause */
            invokevirtual java.lang.Throwable.getCause:()Ljava/lang/Throwable;
            astore 2 /* rootCause */
         3: .line 124
      StackMap locals:
      StackMap stack:
            aload 2 /* rootCause */
            invokevirtual java.lang.Throwable.getCause:()Ljava/lang/Throwable;
            ifnonnull 2
         4: .line 128
            aload 2 /* rootCause */
            instanceof java.lang.SecurityException
            ifeq 6
         5: .line 129
            new org.jruby.util.log.StandardErrorLogger
            dup
            aload 0 /* loggerClass */
            invokespecial org.jruby.util.log.StandardErrorLogger.<init>:(Ljava/lang/Class;)V
            areturn
         6: .line 132
      StackMap locals:
      StackMap stack:
            new java.lang.IllegalStateException
            dup
            ldc "unable to instantiate logger"
            aload 1 /* ex */
            invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
            athrow
        end local 2 // java.lang.Throwable rootCause
        end local 1 // java.lang.Exception ex
        end local 0 // java.lang.Class loggerClass
      LocalVariableTable:
        Start  End  Slot         Name  Signature
            0    7     0  loggerClass  Ljava/lang/Class;
            0    7     1           ex  Ljava/lang/Exception;
            1    7     2    rootCause  Ljava/lang/Throwable;
    MethodParameters:
             Name  Flags
      loggerClass  final
      ex           final
}
SourceFile: "LoggerFactory.java"