??? ??? ???
?????? ??? ?? ????????? ????????????? ?????? ?? ?? ?????? ???????? ??????? ???? ?????. ???? ?????? ?? ????????????????? ?????? ?? ?????????? ?????? ?????????? ???????? ??????. Log4j ?????? ?? ?????? ????????? ????????????? ????.
????? ??? ?????? ????? ?? ????????? ??? ??? ??? ??? ? ?????? ???????
[?]
?? ??????? ??????????? ?????? ?? ??? ???.
???? ?????? ????? ?? ?????? ???????? Log4j 1.2 ? ??? ? java.util.logging ? Logback ????? ?? ??? ??? ? ?? ?? ?? ??? ?????????????? ????????.
[?]
[?]
????? ???????? ??? ??? ? ????????????? ????????? ?????? ??? ?? ??? ??????? ?? ???? ????? ???? ?????. Log4j 2 ????? ?????????? 1.x ?????? ?????
[?]
???????? ≪????????≫ ????????. ?? ?? ???? ????? ??????? ??????????? ?????? ????????????????? ?????? ????? ??? ?????? ?? ? ? ?????? ? ?????????? ?????? ???? ? ?? ????????????? ?????? ? ??????????? ??? ?? ??????????? ?? ?????? ??? ?? ?
[?]
?? ?? ??????? ?????? ????? ??????????? ???? ?????? ?? ??????? ?? ?????????? ???? ???????? ????? ?? ??? ??? ? ??????? ???? ??????? ????? ???? ????? ???? ??????? ? ?????????????? "Log4Shell" ??.
[?]
???? ????? ????? ??????? ????? ??? "???? ?????????? ????????? ????????? ?? ????? ?????????".
[??]
?????? ??????? ?
[
????????
]
?????? ??? ??? ? ??????? ??? ??? ? ?? ?? ????? ???????? ???? ??? ?????? ?? ??? ???? ???????. ?????????? ?? ??????? ?????????? ? ??????? ??????? ?? ???????????? ????????????? ???????? ?????? Log4j 1 ? java.util.logging. ????????? ??????????? ?? Log4j 1 ???????:
[??]
[??]
- ?????????? ?????????. ??????? ?? ?????? ?? ???? ??????????? ???????? ??? ?? Log4j 1 ??? Logback
- ???????: Log4j 2 ??????? ??????? ???????? ????? ?? ??????? ?? ???????????? ?????????? ? ?????????? ??????? ??????????????
- ???????? ?????????? ?????????
- ??????? ?? ?????????? XML? ?????? ???? ? ????????????????
- ?????? ?????????????
- ??????? ?????? ???????????????? ?? ???? ?????????????? ?? ????? ?????????? ????????????????? ??????? ?????????? ?????? ?????? ThreadContext? ? ????? ??????? ?? ?????????
- ??????? ?? ???? APIs: Log4j 2 ????????? ????? ??????? ????? ?????????? ?? ??????????? Log4j 2, Log4j 1.2, SLF4J, ????????????? ?????? ? java.util.logging (JUL) APIs.
- ????????? ?????? ??????????
- ????? ? ?????? ??? ??? ??????? ????? ?? "????????????? ??????"
- ?????????
- ??????? ?? ???????????? ????? ??????????? ??????????
- ≪???? ?? ??? ??? ???? ???≫ ?? ????????? ????????
- ?????? ?????????
- ??????? ?????????? ?? ??????
????? ?? ?????????? ????????????????? Log4j 2 ??????? ?? ?????? ≪????????? ??????≫.
[??]
Log4j 2 ???????? ?? ??????? LMAX.
[??]
?????????? ??????? ???? ????? ??? ???????? ? ????? ???????????? ???? ????? ?? ?????? ??. ?? ??????? ?? ????? ??????? Log4j 2 ???????? ????? ?? ?????????? ???? ?? ????????? ???????? ????????? ???????????? ??? ??? ?????? ? Log4j 1 ????? < ????????? ???? ?? ????????? ?????.
????????????????
[
????????
]
????? ?????? Log4j
[
????????
]
??? ??????? ??????? ????? ????????????? ?????? ? ??????? ?? Log4j ?????? ?????? ?? ???????? ???????? ???????. ?????? ??? ??? ??????? ????? ??? ?? Log4j ???? ????? ? ?????? ??? ???? ??????? ???? ?? ??? ????? ??????? ?????? ?????.
????
|
????
|
??????????
|
??????????? ???????? ???? ?????? ? ??????? ?? ??????????? ?????????.
|
???????
|
????? ????? ?????? ?? ?????? ??? ?????? ???????? ????????. ??????? ???? ??? ?? ?????? ???????? ?????? ????? ??????? ??????.
|
????
|
????? ???????? ??? ???? ?????? ??? ????????? ???????? ??????. ??????? ???? ??? ?? ?????? ???????? ?????? ????? ??????? ??????.
|
????????
|
??????????????? ??????????? APIs? ????????? ??????????? ????? API? '??????' ???????? ???? ??? ???? ?????? ?? ?????????? ??? ???????? ???????? ????? ???? ???? ≪????≫ ???. ??????? ???? ??? ?? ?????? ???????? ?????? ????? ??????? ??????.
|
???????
|
INFO ???? ??????????????? ???? ?????? (?????????/??????????). ????????? ???? ??? ?? ?????? ???????? ?????? ????? ?????????? ?????? ???????? ?? ? ?? ??????? ??? ???????? ??.
|
????????????
|
????????????? ??????? ??? ????? ?????? ??? ?????????. ????????? ???? ??? ?? ?????? ????? ?? ????????? ???????. ?? ???????? ????? ?????? ??? ??????? ????? ??????? ??????? ??????????? ???? ????? ???????? ??? DEBUG.
|
????????
|
??????? ????????? ???????. ????????? ???? ??? ?? ?????? ????? ?? ????????? ???????. ?? ?????? ??????.
[??]
|
????????? ?????? ??????????
[
????????
]
Log4j 2 ???? ?? ???????????? ????? ?? ??????????? ????? ????????????? ?????.
[??]
??????? ??????? ???? ??????? ?????????? ?? ?????????? Loggers ?? ??????? ????? ?????? ?????? ????? ?? ????? ????? ?? ????? ????????????? ??????. ????? ????????????? ?????????? ??? ??????? ???????? ?? ??? ????? ????????? ????????????? ????????? ?????.
?????????? Log4j
[
????????
]
Log4j ????????? ?? ????? ????? ????????? ??? ?? ????? ???? ?????? ????????.
[??]
????????? ????????? ???????? ???????? ?? XML, JSON, YAML, ??? ????????????????? ??????? ????. ????? ???????????? ??????? ?? ???????? ?????? ?????? ?????: Loggers, Appenders, ? layouts. ???????? ???????????? ?? ????? ????????? ??? ?????? ???? ?? ????????? ????????? ???????? ??? ???????????? ???? ??????????? ??? ?????????? ?? Log4j ??????????. ????????????? ???????? ???? ?? ????? ?? ????? ?????? ??? ???? ???? ??????? ????? ?? ??????? ? ????? ????? ?????? ?? ?????? ?? ????????????? ????? ???????????? ???????????.
?????????
[??]
???????? ?? ????? ????? ?????. ????? ???????? ?? ??????? ?? ???????? ????. ??? ?????? ?? ???????? ??????? ???????? ?? ? ?????? ?? ????? ??????? (FATAL, ERROR, ???) ?? ??????? ????? ?????. ?? ?????? ?????????????? Log4j? ?????? ????? ??????? ????? ? ??????? ????? ????? ?? ?????? ????? ??????? ????? ? ????. ??????? ???????? ???????? ????? ?????? ?? ?????? ???????????.
?????????? ???????????? ??????? ??????????????? ?????? ??????.
[??]
????????? ??? ?? ?????????? ????????? ????? ???? ????????? ??? ???? ???????? ???????? ??????? ?????? ??????? SocketAppender, SyslogAppender? ? SMTPAppender. Log4j 2 ????????????? ???? ??? ?? ?? ?????? ???? ???????? ????? ????????? API? ?????? ?????? ????????????? NoSQL? ????????? ?????- ????????????? ????? ?????????????? Access
[??]
? ???????????? ZeroMQ. ???????? ???????????????? ??????? ?????? ????? ?? ??? Logger??? ???? ?????? ????? ??????? ????? ????? ?? ???? ????????? ?? ?????? ?? ?????? ?? ????? ??????? ? ?? ???????? ????? ????? ???????????? ??.
????????????? ??????????? ????????? ?? ??????? ????????? ?????????.
[??]
???????? ????????? ?? ??????? ????????? ?????? ???-??? ??-???-??? ?? ?????? ???????? ?? ?????????? ???????? ??????????? ??? ??? ???? ?????? C / C++. ??????? ??????????? HTMLLayout ? XMLLayout ???? ?? ?????????? ????? HTML ??? XML ?????????? ?????????? ?? ???? ???. Log4j 2 ???????? ??????? ?? CSV, Graylog ?????????? ??????? ????? (GELF),
[??]
JSON, YAML ? RFC-5424.
[??]
?? Log4j 2? ??????????
[??]
?????????? ?????? ????? ????? ????????? ????????? ?? ?????? ???????? ????? ?? ????????? ??? ????? ??? ????????????? ????? ????? ??????? ????? ?? ??????? Loggers ? Appenders. ??? ?? ????????? ?? ????? ????? ? ???????? ???????? ?????? ????? ?????? ????? Log4j 2 ?????????? ???????? ?????????? ???? ????????? ??????? ????????????????? ??????? ?????? ?? ??? ????????? ??? ?????? ???? ????? ? ??????? ??????? JSR 223.
?? ?????? ???????????? ????:
?? ?????????????? Log4j 2 ??????? ?????? ?? TRACE ??????? ?? ?????? ??????? ????????????? ???? ????? ?? ??????? ????????. ?? ?????????? ????????????? ??????? ??? ????? ???????????? ??????????? ???????????? Java VM -Dorg.apache.logging.log4j.simplelog.StatusLogger.level=trace ?????????.
?? Log4j 1? ??????????? Java VM -Dlog4j.debug ?????????.
?? ?????? ????? ????? ?????????? log4j2.xml ?? ??????? getClass().getResource("/log4j2.xml") ????????.
??????? ?????????? ≪?? ????≫??? ≪?????????≫ ?? Log4j ????? ?? ??????????? ????? ?????? Log4j ?? ??? ???????????? Log4j? ????. ??? ???? ?? ??????????????? ???????????????? ?? ????????? ????????????? ? URL ?? ???????? Log4j ?? ???????? ????? ?????????????? ? ???????????? ???????????. ??????? ???????? ??? ??????????? ??????????? ?????? ??? ?????????? ????? ???? ??? ?????? ?????? ??? ????? ?? ????????? ??????.
?????? ?? Log4j 2
[
????????
]
TTCC ??????? ???? ???????? ??????? log4j.
[??]
?? ?? ?? ?? ?????? ?? ???????? ???? ???? ?????. ??? ??????? ??????? ??????????:
???????
|
????
|
%r
|
???????? ?? ???????? ?????? ???????????????? ?? ?? ?????????? ??????? ?? ?????????? ??????? ??????????????.
|
%t
|
??????????? ?? ???????? ???? ??? ??????? ?? ??????? ????????????? ????? ??????.
|
%p
|
???????? ?? ???????? ??????????? ??????? ????????????.
|
%c
|
???????? ?? ???????? ???? ??????? ????????????.
|
%x
|
???????? ?? ?????????? ??? ?? ?? (????????? ????????? ??????????) ??????? ?? ???????? ?? ??????? ????????????? ????? ??????..
[??]
|
%X{key}
|
???????? ?? ?????????? MDC (????????? ?????????? ?????????) ??????? ?? ???????? ?? ??????? ????????????? ?? ????? ????????? ????? ??????.
[??]
|
%m
|
???????? ?? ???????? ????? ??????????? ???????????? ?? ???????? ???? ?? ??????? ???????????.
|
%n
|
???????? ?? ?????????? ????????? ?????? ?? ?????? ???? ??? ??? ???????.
|
??????? ??????
??? [??????] INFO org.apache.log4j.examples.Sort - ??????? ?? ?????? ??????.
log4c
- ???????? ?? ?? ??? ? ?? ????????? ????????????? ????? ?????? ????? ????? ??????? ???? ????? ??????
??? ??
?? ??? ???? ??????????. ?? ??????? ?????????? ???????? ?????? ????? ????? ? ???????? ????? ?????. ????? Windows ????? Makefile ?? ?????????? ????? MSVC ??????????. ??????? ??????????? ???????? ??????? ?????????? ????? ???????? ?? ?????????? ?????????? ?? ???????? ?? ??????????????? ?????????? ????????. ????????? ?? ????????? log4c ???????? ?? ?? ????? ???????????: ??????????? ?????????? ?????? ?? ???????? ??? ?? ????? ????? ?????????? XML. log4c ?????????? ????????? ????????? ? ????? ????????????? ?????? ????. (??? ??????????? ??? ????) ?????? ?????? ????? ?? ?? ???? ?????? ???? ?????????? ? ??????? ???? ?? ???????? ???????? ????? ????????.
[??]
log4js
- ???????? ?? ??????????. ?????? ???? ????? ?????? ?????????? ???????? ?????? ????????. ????? ?? ????????????? ??????????? Log4js ?????? ????????????? ??????????? ??????? ?? ??????? ????? ?????????. ??????????? Ajax ?????? ?? ?????? ???????? ????????? ?? ???? ???????? (XML, JSON, PLAIN ASCII, ???) ?? ????????? ?? ????? ???? ?????????????. ??? ????????????? ??????? ?? ?????? ?????? ?????? ??????: ?????? ???????? ?????? ??????? ???? ??????? ??? ??? ??????? ???????? ??????????? ? ?????? ??????? ??????. ??? ??????? ???????? ??????? ????? ?????: BasicLayout, HtmlLayout, JSONLayout, ? XMLLayout. ??????? ?????? ???? ???? ??? ??? ?? ??? ?????? ?????? ????.
log4javascript - ????????? ?? ?? JavaScript. log4javascript ????????? ????????????? ??????????? ????? ?????? ?????? ???. ??????? ?????? ???? ???? ?????? ??? ?? ?? ??? ?????? ??????
[??]
???????????.
JSNLog
- ???????? ?? ??????????. ?? ???????? ?????????? ??????? ?? loggers ? JavaScript ?? ???????? ??? ?????????? ?? ??????????? ???? ?????? ???????? .NET ?? ??????????? ????? Log4Net, NLog, Elmah ??? Common.Logging ??? ??? ?????. ???? ?? ?????????? ?????? ??????? ?? ??????????? ?????? ????? ? ??????. ????????? ?????????? ???????? ?? ??????????? ??????????? ?? ????????????? ???????????? ????. ????????? ????? ????? ?????? ??????? ???. ????????????. ??????? ?? ????????????? ??????? ????? ?? ?????? ?? ????????? ????? ???. ?? ???? ???? ??????? ????? ????? ??? ? ????????????? ?? ???????? ??? ? ??? ?????? ?????.
[??]
Apache Log4net
- ???????? ?? Microsoft .NET Framework. ??? ???? ?????????? ??????? ??????? ?????? ??? ? ?? ????? ?????? ???? ?????? ?? ?????????? ???????? ??????. ?????????? ???????? ?????? ??? ?????? ????????? ???? ?? ????????????? ?????? ????????? ?? ???? ??????? .NET. ????????? ????????? ?????????? (NDC) ? ????????? ?????????????? ????????? (MDC) ????? ?????. ??????? ?????? ???? ???? ?????? ???.
[??]
????????
- ??????? ???? ?? ?????. ?????? ????? ?????? ???? ????? ??? ??? ???? ????.
[??]
Apache log4php
- ≪????????? ????????????? ?????? ?? ?? ??? ??. ?? ????????? ??????? ?????? ????? ?? ?? ??? ??? ????? ?????? ?? ????? ????????????? ??????????? ?? ??? ?? ???? ?????.≫
[??]
PL-SQL-logging-Utility ??????????? ?? log4j ?? PL/SQL.
[??]
Log4db2
????????? ?????????????? ?? DB2 ?? LUW ?? ??????? SQL ?? ???? SQL PL ??????????.
[??]
Apache Log4cxx
- ????????? ????? ??????? ?? ??++ ?????????? ???? ?????? ?????? ?? ?????? ?????? ?????? ?? ?????? ???? ?????? ?? ???????? ?????????? ? ????? ?? ??? ?????????? ?? ??????? ??? ?? ??? ???????? ??????? ????????????. ?? ??????? ????? ??????????? ??????? ?????? ???????? ?? ???? ?????? ???? ??????????.
[??]
Log4r
- ???????????? ????????????? ?????? ? ???? ?? ???? ??????? ?? ??????????? ?? ??????????? ????. ??????? ?? ????????? ? ?????? ????????????????? ?????? ?????? ??? ?? ????? ?????.
[??]
??? ? ???? ??????
[
????????
]
?????????? ?? ?????? ?? ??? ?????? ?????? ???? ?? ??? ?????? ?????? ???? ?? ??? ?????? ?????? ???? ?? ???????? ???? ???????.
[?]
????????????? ??????????? ?????? ??: Cloudflare, iCloud, Microsoft: ???? ????? ????? ??????? ??? ???? ? ??????. ?????????? ???????? ?????? ??????? ???? ?????? ?? ?? ??? ???? ????? ??? ?? ?? ?? Log4Shell? ????? ???????? ?????? ???????? ?? ???????? ?????? ????? ?? ?? ???????????????. ????????????? ??????? ????????? ??????? ?????? ????? ??? ≪???? ?????????? ????????? ????????? ????? ???????≫ ? ?????? ??? ??????? ?? ≪??????? ??????? ????? ??????????≫ ????? ???.
?? ???????? ????????????? ????????? ??????? ???????? ?????? ? ??????? ?????? (CISA)? ??? ????????? ?? ??????????? ≪???????≫ ??????? ??? ? ????????? ???????????? ??? ?? ??????????? ?????????????? ???????????? ? ?????? ??????? ??????? ?? ???????? ??????? ??????? ?????? ?? ??????? ?????? (CCCS) ????? ?? ??????????? ??? ?? ???? ???? ??? ????.
??????????????? ?????? ??? ????? ?? ???????????? ?? ???????? ????? ?????????? ?????????? ?? ???????? ?? ?????? 2.15.0-rc1 (?? ????? ?? ?? ??????? ?????? ????? ?? ??? ??? ???? ???????? ?????????????) ? ?? ???????? ????????????? ????????????? ?????? ???????? ??????. ?? ??????? ?????? ????? ???????????????? ?? ??????????? JNDI? ?? ??? ???????? ?????? ??????????? ?? ???????? ????????? ??????? ??????? ? ??????? ?? ?????????? ???? ???????? ?? ?????? ?????? ?? ?????.
- ^
"Apache Log4j 1.2 Release History"
.
apache.org
. Apache Software Foundation
. Retrieved
2014-09-02
.
- ^
"Release 2.23.1"
. 10? ?????? 2024
. Retrieved 22? March? 2024
.
- ^
"Log4j ? Changes - Apache Log4j 2"
.
apache.org
. Apache Software Foundation
. Retrieved
2021-12-18
.
??? ?????? ???? ??
?????? ?????
?
?????? ?????
.
- ^
"Logback Home"
. Logback.qos.ch
. Retrieved
2014-07-24
.
- ^
"Log4j 2 Guide - Apache Log4j 2"
. Logging.apache.org. 2014-07-12
. Retrieved
2014-07-24
.
- ^
Goers, Ralph (15 December 2019).
"Why was Log4j 2 created?"
.
Ralph Goers
.
- ^
"Log4j 2 Guide - Apache Log4j 2: News"
. Logging.apache.org. 2014-07-12
. Retrieved
2014-07-24
.
- ^
"Apache Logging Services Project Announces Log4j 1 End-Of-Life; Recommends Upgrade to Log4j 2"
. blogs.apache.org. 2015-08-05
. Retrieved
2016-07-03
.
- ^
?
?
"What's the Deal with the Log4Shell Security Nightmare?"
.
Lawfare
. December 10, 2021.
??? ?????? ???? ??
?????? ?????
?
?????? ?????
.
- ^
"Recently uncovered software flaw 'most critical vulnerability of the last decade'
"
.
the Guardian
. Associated Press. December 11, 2021.
- ^
"The new log4j 2.0"
. Grobmeier.de. 2012-12-05
. Retrieved
2014-07-24
.
- ^
"Log4j ? Overview - Apache Log4j 2"
. logging.apache.org. 2016-06-05
. Retrieved
2016-07-03
.
- ^
"Log4j 2 Asynchronous Loggers for Low-Latency Logging - Apache Log4j 2"
. Logging.apache.org. 2014-07-12
. Retrieved
2014-07-24
.
- ^
"Disruptor by LMAX-Exchange"
. Lmax-exchange.github.io
. Retrieved
2014-07-24
.
- ^
"Level (Apache Log4j 1.2.17 API)"
. Logging.apache.org. 2012-06-09
. Retrieved
2014-07-24
.
- ^
"Custom Log Levels"
. Logging.apache.org. 2014-07-12
. Retrieved
2016-07-16
.
- ^
"Configuration"
. Logging.apache.org. 2016-07-05
. Retrieved
2016-07-16
.
- ^
"Architecture"
. Logging.apache.org. 2016-07-05
. Retrieved
2016-07-16
.
- ^
"Appenders"
. Logging.apache.org. 2016-07-05
. Retrieved
2016-07-16
.
- ^
"RandomAccessFile"
. docs.oracle.com. 2011-07-28
. Retrieved
2016-07-16
.
- ^
"Layouts"
. Logging.apache.org. 2016-07-05
. Retrieved
2016-07-16
.
- ^
"GELF"
. docs.graylog.org. 2016-06-08
. Retrieved
2016-07-16
.
?? ?????? ???? ??
?????? ?????
?
?????? ?????
.
- ^
"RFC 5424 - The Syslog Protocol"
. tools.ietf.org. 2009-03-01
. Retrieved
2016-07-16
.
- ^
"Filters"
. Logging.apache.org. 2016-07-05
. Retrieved
2016-07-16
.
- ^
"TTCCLayout (Apache Log4j 1.2.17 API)"
. Logging.apache.org. 2012-06-09
. Retrieved
2014-07-24
.
- ^
"Class NDC"
.
Archived
from the original on 2007-08-20
. Retrieved
2021-12-11
.
- ^
"MDC (Apache Log4j 1.2.17 API)"
. Logging.apache.org. 2012-06-09
. Retrieved
2014-07-24
.
- ^
"Logging Framework for C | Free System Administration software downloads at"
. Sourceforge.net
. Retrieved
2014-07-24
.
- ^
"a JavaScript logging framework"
. log4javascript
. Retrieved
2021-12-11
.
- ^
"Logging JavaScript errors to your server side log"
. JSNLog
. Retrieved
2021-12-11
.
- ^
"Apache log4net"
. Logging.apache.org
. Retrieved
2021-12-11
.
- ^
Schilli, Mike; Goess, Kevin.
"log4perl - log4j for Perl"
.
log4perl
. Retrieved
2021-12-11
.
- ^
"Apache Logging Services"
. Apache.org
. Retrieved
2015-03-11
.
- ^
"tmuth/Logger-A-PL-SQL-Logging-Utility ? GitHub"
. Github.com
. Retrieved
2014-07-24
.
- ^
"Log4db2 by angoca"
. Angoca.github.io
. Retrieved
2014-07-24
.
- ^
"log4cxx - Changelog"
.
logging.apache.org
.
- ^
"Log4r Manual"
. log4r.rubyforge.org. Archived from
the original
on 2012-12-25
. Retrieved
2017-04-13
.
??? ??????? ?????? ???? ??
Archive.is
?
?????? ?????
????? ????????
[
????????
]
- Gulcu, Ceki (February 2010),
The Complete Log4j Manual
(2nd ed.), QOS.ch, p. 204,
ISBN
978-2-9700369-0-6
- Gupta, Samudra (June 22, 2005),
Pro Apache Log4j
(2nd ed.),
Apress
, p. 224,
ISBN
978-1-59059-499-5
??????? ???????????
[
????????
]
![](//upload.wikimedia.org/wikipedia/commons/thumb/4/4a/Commons-logo.svg/30px-Commons-logo.svg.png) |
?????? ?????????? ?????? ??????????? ??
??? ??? ???
??????.
|