Log4j2.json ERROR Loggers cannot be configured without a name: arg[2](null)? Log4j2.json ERROR Loggers cannot be configured without a name: arg[2](null)? json json

Log4j2.json ERROR Loggers cannot be configured without a name: arg[2](null)?


It looks like you may have a typo - should be AppenderRef instead of appender-ref. See manual for examples - https://logging.apache.org/log4j/2.x/manual/configuration.html#Configuration_with_JSON.