Fork me on GitHub
#lambdaisland
<
2022-10-06
>
Drew Verlee16:10:26

I'm trying to get logging working on my project and i'm using the helpful snippet from the above article on logging >

clj -Stree | egrep '^\s*(commons-logging|log4j|org\.apache\.logging\.log4j/log4j|org\.slf4j/simple|org\.slf4j/slf4j-jcl|org\.slf4j/slf4j-nop|org\.slf4j/slf4j-log4j12|org\.slf4j/slf4j-log4j13) '
which returns nothing to stdout, so i assume i have no logging deps i need to exlude. If i look at my raw output form clj -Stree though i think i do see a logging lib i need to remove:
com.taoensso/faraday 1.11.4
  X com.taoensso/nippy 2.15.3 :use-top
  . commons-logging/commons-logging 1.2 <-------- the dot means included right?
And if i look at my jar i see META-INF/maven/commons-logging/commons-logging/ If i remove the ^s* from the command i think i get output that contains some logging libs i need to exclude:
clj -Stree | egrep '(commons-logging|log4j|org\.apache\.logging\.log4j/log4j|org\.slf4j/simple|org\.slf4j/slf4j-jcl|org\.slf4j/slf4j-nop|org\.slf4j/slf4j-log4j12|org\.slf4j/slf4j-log4j13)' 
      . commons-logging/commons-logging 1.2
    . commons-logging/commons-logging 1.2
      . commons-logging/commons-logging 1.2
    . commons-logging/commons-logging 1.2
    X commons-logging/commons-logging 1.1.3 :older-version
        X commons-logging/commons-logging 1.1.3 :older-version
      . commons-logging/commons-logging 1.2
      X commons-logging/commons-logging 1.1.3 :older-version
  . org.slf4j/slf4j-nop 1.7.22
  . org.slf4j/log4j-over-slf4j 1.7.22
    . commons-logging/commons-logging 1.2
    . commons-logging/commons-logging 1.2
    . commons-logging/commons-logging 1.2
    . log4j/log4j 1.2.16
  . commons-logging/commons-logging 1.2
      X commons-logging/commons-logging 1.1.3 :excluded