com.groupbyinc.flux.common.logging.Loggers.class Maven / Gradle / Ivy
???? 4? *com/groupbyinc/flux/common/logging/Loggers java/lang/Object Loggers.java 8com/groupbyinc/flux/common/settings/Setting$AffixSetting +com/groupbyinc/flux/common/settings/Setting AffixSetting java/util/Map$Entry
java/util/Map
Entry 4com/groupbyinc/flux/common/settings/Setting$Property Property %java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles Lookup SPACE Ljava/lang/String; LOG_DEFAULT_LEVEL_SETTING -Lcom/groupbyinc/flux/common/settings/Setting; OLcom/groupbyinc/flux/common/settings/Setting; LOG_LEVEL_SETTING :Lcom/groupbyinc/flux/common/settings/Setting$AffixSetting; \Lcom/groupbyinc/flux/common/settings/Setting$AffixSetting; $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;)Lorg/apache/logging/log4j/Logger; 'com/groupbyinc/flux/index/shard/ShardId , getIndex #()Lcom/groupbyinc/flux/index/Index; . /
- 0 id ()I 2 3
- 4 java/lang/Integer 6 toString (I)Ljava/lang/String; 8 9
7 : /com/groupbyinc/flux/common/util/CollectionUtils < asArrayList <(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/util/ArrayList; > ?
= @ java/lang/String B java/util/ArrayList D toArray (([Ljava/lang/Object;)[Ljava/lang/Object; F G
E H [Ljava/lang/String; J ?(Ljava/lang/Class;Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/index/Index;[Ljava/lang/String;)Lorg/apache/logging/log4j/Logger; * L
M 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;)Lorg/apache/logging/log4j/Logger; getIndexName ()Ljava/lang/String; X Y
- Z N(Ljava/lang/Object;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/util/ArrayList; > \
= ] v(Ljava/lang/String;Lcom/groupbyinc/flux/common/settings/Settings;[Ljava/lang/String;)Lorg/apache/logging/log4j/Logger; * _
`
loggerName com/groupbyinc/flux/index/Index c getName e Y
d f u(Ljava/lang/Class;Lcom/groupbyinc/flux/common/settings/Settings;[Ljava/lang/String;)Lorg/apache/logging/log4j/Logger; * h
i index !Lcom/groupbyinc/flux/index/Index; prefixesList S(Lcom/groupbyinc/flux/common/settings/Settings;[Ljava/lang/String;)Ljava/util/List; m n
o java/util/List q size s 3 r t r H G(Ljava/lang/Class;[Ljava/lang/String;)Lorg/apache/logging/log4j/Logger; * w
x $Ljava/util/List; Ljava/util/List; H(Ljava/lang/String;[Ljava/lang/String;)Lorg/apache/logging/log4j/Logger; * |
}
E & com/groupbyinc/flux/node/Node ? NODE_NAME_SETTING ? ? ? exists 1(Lcom/groupbyinc/flux/common/settings/Settings;)Z ? ?
? get B(Lcom/groupbyinc/flux/common/settings/Settings;)Ljava/lang/Object; ? ?
? add (Ljava/lang/Object;)Z ? ? r ? java/util/Arrays ? asList %([Ljava/lang/Object;)Ljava/util/List; ? ?
? ? addAll (Ljava/util/Collection;)Z ? ? r ? V(Lorg/apache/logging/log4j/Logger;Ljava/lang/String;)Lorg/apache/logging/log4j/Logger; " # ? /com/groupbyinc/flux/common/logging/PrefixLogger ? java/lang/AssertionError ?
? & prefix ? Y
? ? java/lang/StringBuilder ?
? & org/apache/logging/log4j/Logger ? ? f append -(Ljava/lang/String;)Ljava/lang/StringBuilder; ? ?
? ? 8 Y
? ? 2com/groupbyinc/flux/common/logging/ESLoggerFactory ? G(Ljava/lang/String;Ljava/lang/String;)Lorg/apache/logging/log4j/Logger; * ?
? ? parentLogger !Lorg/apache/logging/log4j/Logger; s 5(Ljava/lang/String;)Lorg/apache/logging/log4j/Logger; * ?
? ? 4(Ljava/lang/Class;)Lorg/apache/logging/log4j/Logger; * ?
? ? formatPrefix '([Ljava/lang/String;)Ljava/lang/String; ? ?
? F(Ljava/lang/String;Ljava/lang/Class;)Lorg/apache/logging/log4j/Logger; * ?
? ? name equals ? ?
C ? [ ? ] ? length ? 3
? ? prefixX sb Ljava/lang/StringBuilder; setLevel 6(Lorg/apache/logging/log4j/Logger;Ljava/lang/String;)V org/apache/logging/log4j/Level ? valueOf 4(Ljava/lang/String;)Lorg/apache/logging/log4j/Level; ? ?
? ? D(Lorg/apache/logging/log4j/Logger;Lorg/apache/logging/log4j/Level;)V ? ?
? l Lorg/apache/logging/log4j/Level; logger level ? 1org/apache/logging/log4j/core/config/Configurator ? 5(Ljava/lang/String;Lorg/apache/logging/log4j/Level;)V ? ?
? ? +org/apache/logging/log4j/core/LoggerContext ?
getContext 0(Z)Lorg/apache/logging/log4j/core/LoggerContext; ? ?
? ? getConfiguration 6()Lorg/apache/logging/log4j/core/config/Configuration; ? ?
? ? 2org/apache/logging/log4j/core/config/Configuration ? getLoggerConfig G(Ljava/lang/String;)Lorg/apache/logging/log4j/core/config/LoggerConfig; ? ? ? ? 1org/apache/logging/log4j/core/config/LoggerConfig ? #(Lorg/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;
? f .
startsWith (Ljava/lang/String;)Z
C ctx -Lorg/apache/logging/log4j/core/LoggerContext; config 4Lorg/apache/logging/log4j/core/config/Configuration; loggerConfig 3Lorg/apache/logging/log4j/core/config/LoggerConfig; addAppender L(Lorg/apache/logging/log4j/Logger;Lorg/apache/logging/log4j/core/Appender;)V #org/apache/logging/log4j/LogManager* /(Z)Lorg/apache/logging/log4j/spi/LoggerContext; ?,
+- +(Lorg/apache/logging/log4j/core/Appender;)V(/ ?0 getLevel "()Lorg/apache/logging/log4j/Level;23 ?4 6(Ljava/lang/String;Lorg/apache/logging/log4j/Level;Z)V $6
?7 addLogger H(Ljava/lang/String;Lorg/apache/logging/log4j/core/config/LoggerConfig;)V9: ?; q(Lorg/apache/logging/log4j/core/Appender;Lorg/apache/logging/log4j/Level;Lorg/apache/logging/log4j/core/Filter;)V(=
?> appender (Lorg/apache/logging/log4j/core/Appender; removeAppender &org/apache/logging/log4j/core/AppenderCD f (Ljava/lang/String;)VBF
?G findAppender \(Lorg/apache/logging/log4j/Logger;Ljava/lang/Class;)Lorg/apache/logging/log4j/core/Appender; getAppendersK
?L entrySet ()Ljava/util/Set;NO P
java/util/SetRS java/lang/ClassU getValueW X getClass ()Ljava/lang/Class;Z[
\
? entry QLjava/util/Map$Entry; Ljava/util/Map$Entry; ; lambda$static$0 A(Ljava/lang/String;)Lcom/groupbyinc/flux/common/settings/Setting; INFOe ? ?f ? Y
?h "java/lang/invoke/LambdaMetafactoryj metafactory ?(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;lm
kno &(Ljava/lang/Object;)Ljava/lang/Object;q ? ? apply ()Ljava/util/function/Function;uv w Dynamic 6Lcom/groupbyinc/flux/common/settings/Setting$Property;yz { NodeScope}z ~ {(Ljava/lang/String;Ljava/lang/String;Ljava/util/function/Function;[Lcom/groupbyinc/flux/common/settings/Setting$Property;)V $?
? key desiredAssertionStatus?
V? logger.level? ? logger.?cd
??d w prefixKeySetting k(Ljava/lang/String;Ljava/util/function/Function;)Lcom/groupbyinc/flux/common/settings/Setting$AffixSetting;??
? ?
ConstantValue Signature Code LocalVariableTable LineNumberTable LocalVariableTypeTable ?(Ljava/lang/Class<*>;Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/index/shard/ShardId;[Ljava/lang/String;)Lorg/apache/logging/log4j/Logger; ?(Ljava/lang/Class<*>;Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/index/Index;[Ljava/lang/String;)Lorg/apache/logging/log4j/Logger; x(Ljava/lang/Class<*>;Lcom/groupbyinc/flux/common/settings/Settings;[Ljava/lang/String;)Lorg/apache/logging/log4j/Logger;
StackMapTable g(Lcom/groupbyinc/flux/common/settings/Settings;[Ljava/lang/String;)Ljava/util/List; 7(Ljava/lang/Class<*>;)Lorg/apache/logging/log4j/Logger; J(Ljava/lang/Class<*>;[Ljava/lang/String;)Lorg/apache/logging/log4j/Logger; ?(Lorg/apache/logging/log4j/Logger;Ljava/lang/Class<+Lorg/apache/logging/log4j/core/Appender;>;)Lorg/apache/logging/log4j/core/Appender; BootstrapMethods
SourceFile InnerClasses ! ? ? ? ! " # $ % ? / *? '? ? ( ) ? . ? * + ? y *+,? 1,? 5? ;-? A? C? I? K? N? ? * O Q R S T U V J ? O P ? 9? ? ? * W ? o *+,? [,? 5? ;-? ^? C? I? K? a? ? * b R S T U V J ? A B A ? * L ? t *+,? g-? ^? C? I? K? j? ? * O Q R S k l V J ? O P ? F? ? ? * h ? ? +,? pN*--? u ? C? v ? K? y? ? * O Q R S V J m { ? O P m z ?
J K? ? ? * _ ? { +,? pN*--? u ? C? v ? K? ~? ? * b R S V J m { ? m z ?
O P ? m n ? ? 9? EY? M? ?*? ?? ,? ?*? ?? C? ? W+? +?? ,+? ?? ? W,? ? 9 R S 9 V J 1 m { ? 1 m z ? T U V # X , Y 7 [? ? # r? ? * ? ? x 7? ?? *? ?? ? ?Y? ??*? ?? ?? ?Y? ?*? ? ? ?+? ?? ?? ?? ? 7 ? ? 7 ? ?
_ `? * ? ? / *? ?? ? ? ? d * ? ? A *? ?? ? O Q ? O P ? h? ? ? * w ? O +? ?*? ư ? O Q V J ? O P ? l? ? ? * | ? = +? ?*? ?? ? ? V J ? p ? ? ? ? nL*? i*?? d? ?Y? ?M*N-?66? 9-2:? (? ʙ
,? ?W? ,̶ ?? ?ζ ?W????,? ў ,? ?W,? ?L+? ? * ) * ? Y ? ? n V J l ? ? 6
t u v w ) x . y 8 z B | S w Y ? ` ? g ? l ?? &