com.groupbyinc.flux.common.logging.Loggers.class Maven / Gradle / Ivy
???? 4g *com/groupbyinc/flux/common/logging/Loggers java/lang/Object Loggers.java java/util/Map$Entry
java/util/Map Entry SPACE Ljava/lang/String;
$assertionsDisabled Z ()V
this ,Lcom/groupbyinc/flux/common/logging/Loggers; getLogger ?(Ljava/lang/Class;Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/index/shard/ShardId;[Ljava/lang/String;)Lcom/groupbyinc/flux/common/apache/logging/log4j/Logger; 'com/groupbyinc/flux/index/shard/ShardId getIndex #()Lcom/groupbyinc/flux/index/Index;
id ()I
! java/lang/Integer # toString (I)Ljava/lang/String; % &
$ ' /com/groupbyinc/flux/common/util/CollectionUtils ) asArrayList <(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/util/ArrayList; + ,
* - java/lang/String / java/util/ArrayList 1 toArray (([Ljava/lang/Object;)[Ljava/lang/Object; 3 4
2 5 [Ljava/lang/String; 7 ?(Ljava/lang/Class;Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/index/Index;[Ljava/lang/String;)Lcom/groupbyinc/flux/common/apache/logging/log4j/Logger; 9
: clazz Ljava/lang/Class<*>; Ljava/lang/Class; settings .Lcom/groupbyinc/flux/common/settings/Settings; shardId )Lcom/groupbyinc/flux/index/shard/ShardId; prefixes ?(Ljava/lang/String;Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/index/shard/ShardId;[Ljava/lang/String;)Lcom/groupbyinc/flux/common/apache/logging/log4j/Logger; getIndexName ()Ljava/lang/String; E F
G N(Ljava/lang/Object;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/util/ArrayList; + I
* J ?(Ljava/lang/String;Lcom/groupbyinc/flux/common/settings/Settings;[Ljava/lang/String;)Lcom/groupbyinc/flux/common/apache/logging/log4j/Logger; L
M
loggerName com/groupbyinc/flux/index/Index P getName R F
Q S ?(Ljava/lang/Class;Lcom/groupbyinc/flux/common/settings/Settings;[Ljava/lang/String;)Lcom/groupbyinc/flux/common/apache/logging/log4j/Logger; U
V index !Lcom/groupbyinc/flux/index/Index; prefixesList S(Lcom/groupbyinc/flux/common/settings/Settings;[Ljava/lang/String;)Ljava/util/List; Z [
\ java/util/List ^ size ` _ a _ 5 ^(Ljava/lang/Class;[Ljava/lang/String;)Lcom/groupbyinc/flux/common/apache/logging/log4j/Logger; d
e $Ljava/util/List; Ljava/util/List; _(Ljava/lang/String;[Ljava/lang/String;)Lcom/groupbyinc/flux/common/apache/logging/log4j/Logger; i
j
2 com/groupbyinc/flux/node/Node m NODE_NAME_SETTING -Lcom/groupbyinc/flux/common/settings/Setting; o p n q +com/groupbyinc/flux/common/settings/Setting s exists 1(Lcom/groupbyinc/flux/common/settings/Settings;)Z u v
t w get B(Lcom/groupbyinc/flux/common/settings/Settings;)Ljava/lang/Object; y z
t { add (Ljava/lang/Object;)Z } ~ _ java/util/Arrays ? asList %([Ljava/lang/Object;)Ljava/util/List; ? ?
? ? addAll (Ljava/util/Collection;)Z ? ? _ ? ?(Lcom/groupbyinc/flux/common/apache/logging/log4j/Logger;Ljava/lang/String;)Lcom/groupbyinc/flux/common/apache/logging/log4j/Logger; ? /com/groupbyinc/flux/common/logging/PrefixLogger ? java/lang/AssertionError ?
? prefix ? F
? ? java/lang/StringBuilder ?
? 6com/groupbyinc/flux/common/apache/logging/log4j/Logger ? ? S append -(Ljava/lang/String;)Ljava/lang/StringBuilder; ? ?
? ? % F
? ? 2com/groupbyinc/flux/common/logging/ESLoggerFactory ? ^(Ljava/lang/String;Ljava/lang/String;)Lcom/groupbyinc/flux/common/apache/logging/log4j/Logger; ?
? ? parentLogger 8Lcom/groupbyinc/flux/common/apache/logging/log4j/Logger; s L(Ljava/lang/String;)Lcom/groupbyinc/flux/common/apache/logging/log4j/Logger; ?
? ? K(Ljava/lang/Class;)Lcom/groupbyinc/flux/common/apache/logging/log4j/Logger; ?
? ? formatPrefix '([Ljava/lang/String;)Ljava/lang/String; ? ?
? ](Ljava/lang/String;Ljava/lang/Class;)Lcom/groupbyinc/flux/common/apache/logging/log4j/Logger; ?
? ? name equals ? ~
0 ? [ ? ] ? length ?
? ? prefixX sb Ljava/lang/StringBuilder; setLevel M(Lcom/groupbyinc/flux/common/apache/logging/log4j/Logger;Ljava/lang/String;)V 5com/groupbyinc/flux/common/apache/logging/log4j/Level ? valueOf K(Ljava/lang/String;)Lcom/groupbyinc/flux/common/apache/logging/log4j/Level; ? ?
? ? r(Lcom/groupbyinc/flux/common/apache/logging/log4j/Logger;Lcom/groupbyinc/flux/common/apache/logging/log4j/Level;)V ? ?
? l 7Lcom/groupbyinc/flux/common/apache/logging/log4j/Level; logger level ? Hcom/groupbyinc/flux/common/apache/logging/log4j/core/config/Configurator ? L(Ljava/lang/String;Lcom/groupbyinc/flux/common/apache/logging/log4j/Level;)V ? ?
? ? Bcom/groupbyinc/flux/common/apache/logging/log4j/core/LoggerContext ?
getContext G(Z)Lcom/groupbyinc/flux/common/apache/logging/log4j/core/LoggerContext; ? ?
? ? getConfiguration M()Lcom/groupbyinc/flux/common/apache/logging/log4j/core/config/Configuration; ? ?
? ? Icom/groupbyinc/flux/common/apache/logging/log4j/core/config/Configuration ? getLoggerConfig ^(Ljava/lang/String;)Lcom/groupbyinc/flux/common/apache/logging/log4j/core/config/LoggerConfig; ? ? ? ? Hcom/groupbyinc/flux/common/apache/logging/log4j/core/config/LoggerConfig ? :(Lcom/groupbyinc/flux/common/apache/logging/log4j/Level;)V ? ?
? ?
updateLoggers ?
? ?
getLoggers ()Ljava/util/Map; ? ? ? ? values ()Ljava/util/Collection; ? ? ? java/util/Collection ? iterator ()Ljava/util/Iterator; ? ? ? ? java/util/Iterator hasNext ()Z next ()Ljava/lang/Object;
? S .
startsWith (Ljava/lang/String;)Z
0 ctx DLcom/groupbyinc/flux/common/apache/logging/log4j/core/LoggerContext; config KLcom/groupbyinc/flux/common/apache/logging/log4j/core/config/Configuration; loggerConfig JLcom/groupbyinc/flux/common/apache/logging/log4j/core/config/LoggerConfig; addAppender z(Lcom/groupbyinc/flux/common/apache/logging/log4j/Logger;Lcom/groupbyinc/flux/common/apache/logging/log4j/core/Appender;)V :com/groupbyinc/flux/common/apache/logging/log4j/LogManager F(Z)Lcom/groupbyinc/flux/common/apache/logging/log4j/spi/LoggerContext; ?
B(Lcom/groupbyinc/flux/common/apache/logging/log4j/core/Appender;)V ? getLevel 9()Lcom/groupbyinc/flux/common/apache/logging/log4j/Level;"# ?$ M(Ljava/lang/String;Lcom/groupbyinc/flux/common/apache/logging/log4j/Level;Z)V &
?' addLogger _(Ljava/lang/String;Lcom/groupbyinc/flux/common/apache/logging/log4j/core/config/LoggerConfig;)V)* ?+ ?(Lcom/groupbyinc/flux/common/apache/logging/log4j/core/Appender;Lcom/groupbyinc/flux/common/apache/logging/log4j/Level;Lcom/groupbyinc/flux/common/apache/logging/log4j/core/Filter;)V-
?. appender ?Lcom/groupbyinc/flux/common/apache/logging/log4j/core/Appender; removeAppender =com/groupbyinc/flux/common/apache/logging/log4j/core/Appender34 S (Ljava/lang/String;)V26
?7 findAppender ?(Lcom/groupbyinc/flux/common/apache/logging/log4j/Logger;Ljava/lang/Class;)Lcom/groupbyinc/flux/common/apache/logging/log4j/core/Appender; getAppenders; ?
?< entrySet ()Ljava/util/Set;>? @
java/util/SetBC ? java/lang/ClassE getValueG H getClass ()Ljava/lang/Class;JK
L
? entry hLjava/util/Map$Entry; Ljava/util/Map$Entry; SLjava/lang/Class<+Lcom/groupbyinc/flux/common/apache/logging/log4j/core/Appender;>; desiredAssertionStatusT
FU
ConstantValue Code LocalVariableTable LineNumberTable LocalVariableTypeTable Signature ?(Ljava/lang/Class<*>;Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/index/shard/ShardId;[Ljava/lang/String;)Lcom/groupbyinc/flux/common/apache/logging/log4j/Logger; ?(Ljava/lang/Class<*>;Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/index/Index;[Ljava/lang/String;)Lcom/groupbyinc/flux/common/apache/logging/log4j/Logger; ?(Ljava/lang/Class<*>;Lcom/groupbyinc/flux/common/settings/Settings;[Ljava/lang/String;)Lcom/groupbyinc/flux/common/apache/logging/log4j/Logger;
StackMapTable g(Lcom/groupbyinc/flux/common/settings/Settings;[Ljava/lang/String;)Ljava/util/List; N(Ljava/lang/Class<*>;)Lcom/groupbyinc/flux/common/apache/logging/log4j/Logger; a(Ljava/lang/Class<*>;[Ljava/lang/String;)Lcom/groupbyinc/flux/common/apache/logging/log4j/Logger; ?(Lcom/groupbyinc/flux/common/apache/logging/log4j/Logger;Ljava/lang/Class<+Lcom/groupbyinc/flux/common/apache/logging/log4j/core/Appender;>;)Lcom/groupbyinc/flux/common/apache/logging/log4j/core/Appender;
SourceFile InnerClasses ! W X / *? ? Y Z 1 ? X y *+,? ,? "? (-? .? 0? 6? 8? ;? Y * <