Category : log4j

Basic concept Log4j Three Pieceslogger、appender、layout Log levelALL<TRACE<DEBUG<INFO<WARN<ERROR<FATAL<OFF Logger for packages and classes log4j.logger.<PACKAGE_NAME>=<LEVEL> log4j.logger.<PACKAGE_NAME>.<CLASS_NAME>=<LEVEL>, <LOGGER_NAME> appender ConsoleAppender FileAppender RollingFileAppender RandomAccessFileAppender Messaging JMSAppender SMTPAppender DB JDBCAppender JPAAppender NoSQLAppender Remote SocketAppender SyslogAppender layout PatternLayout HTMLLayout XMLLayout JSONLayout SerializedLayout Rolling file sets the reserved file size (Can be used in a test environment to avoid log accumulation occupying ..

Read more