I’m using log4j2 (2.16) and am trying to find a way to disable or filter the logging that occurs in ND4J from my own logging. While it is good info to know, I’d like to be able to turn it off and on:
[INFO] 2022-01-06T14:34:56,250 utils.Data Reading src/test/resources/cluster_type0.csv
[INFO] 2022-01-06T14:34:56,539 factory.Nd4jBackend Loaded [CpuBackend] backend
[INFO] 2022-01-06T14:34:57,271 nativeblas.NativeOpsHolder Number of threads used for linear algebra: 8
[INFO] 2022-01-06T14:34:57,272 nativecpu.CpuNDArrayFactory Binary level Generic x86 optimization level AVX/AVX2
[INFO] 2022-01-06T14:34:57,293 nativeblas.Nd4jBlas Number of threads used for OpenMP BLAS: 8
[INFO] 2022-01-06T14:34:57,304 executioner.DefaultOpExecutioner Backend used: [CPU]; OS: [Windows 10]
[INFO] 2022-01-06T14:34:57,304 executioner.DefaultOpExecutioner Cores: [16]; Memory: [14.1GB];
[INFO] 2022-01-06T14:34:57,304 executioner.DefaultOpExecutioner Blas vendor: [OPENBLAS]
[INFO] 2022-01-06T14:34:57,306 nativecpu.CpuBackend Backend build information:
GCC: "10.3.0"
STD version: 201103L
DEFAULT_ENGINE: samediff::ENGINE_CPU
HAVE_FLATBUFFERS
HAVE_OPENBLAS
my log4j2.properties file looks like so:
name=LogProperties
status=warn
appender.console.type = Console
appender.console.name = consoleLogger
appender.console.layout.type = PatternLayout
appender.console.layout.pattern = [%p]\t%d{ISO8601}\t%c{2}\t\t%m%n
appender.file.type = File
appender.file.name = fileLogger
appender.file.append = false
appender.file.fileName = dean.log
appender.file.layout.type = PatternLayout
appender.file.layout.pattern = %m%n
rootLogger.level = info
rootLogger.appenderRef.stdout.ref = consoleLogger
rootLogger.appenderRef.file.ref = fileLogger