Installation and configuration explanation of Log4j and Log4j2

What is a log? A log is a file that records detailed information about events or behaviors that occur when a system or application is running. It usually includes information such as timestamp, event type, event description, etc., so that troubleshooting, performance optimization, security auditing, etc. can be performed when needed. Logs can help developers […]

Exception, log framework (log4j2)

1. Exception 1. Concept An abnormal event occurs during the running of the program and the event can be handled. It will interrupt the running program. 2. Classification Error: represents a system-level error (a serious problem) Once a problem occurs in the system, Sun will encapsulate these errors into Error objects. Exception: represents possible problems […]

Log4j2 principle analysis and vulnerability recurrence

Log4j2 principle analysis and vulnerability reproduction 0x01 log4j2 introduction Log4j2 is a mature and powerful logging framework for Java applications. It is an upgraded version of Log4j. Compared with Log4j, Log4j2 has significant improvements in performance, reliability and flexibility. Log4j2 Features High performance: Log4j2 uses an asynchronous logging mechanism that can provide higher throughput and […]

Protect sensitive data in Log4j logs in two steps!

This is a community that may be useful to you One-to-one communication/interview brochure/resume optimization/job search questions, welcome to join the “Yudao Rapid Development Platform” Knowledge Planet. The following is some information provided by Planet: “Project Practice (Video)”: Learn from books, “practice” from past events “Internet High Frequency Interview Questions”: Studying with your resume, spring blossoms […]

Java logging system Log4j2

Introduction to Log4j2 Log4j2 is an upgraded version of Log4j. It refers to the excellent design of Logback and fixes some problems. The main advantages are: Exception handling. In logback, exceptions in Appender will not be perceived by the application, but in log4j2, some exception handling mechanisms are provided. Performance improvement, log4j2 has obvious performance […]

Java logging system Log4j

Table of Contents Log4J Simple use of Log4j Log level Log4j components Loggers Appenders Layout Layout format Setting configuration file loading Configuration file analysis Log4J It is an open source logging framework under Apache. Simple use of Log4j @Test public void testLog4J(){ Logger logger = Logger.getLogger(Log4jTest.class); logger.info(“hello log4j”); } log4j:WARN No appenders could be found […]

High-performance log desensitization component: already supports log4j2 and logback plug-ins

Project introduction Log desensitization is a common security requirement. The ordinary method based on tool class methods is too intrusive to the code and is particularly troublesome to write. Sensitive provides an annotation-based approach and has built-in common desensitization methods to facilitate development. It also supports common log desensitization plug-ins such as logback and log4j2. […]