臾몄쓽泥


냽eGISEC : egisec@seconexpo.com
냽SECON : secon@seconexpo.com

냽援쇅 : global@seconexpo.com

蹂대룄옄猷

쟾옄젙遺 몴以봽젅엫썙겕룄 濡쒓렇4j 궗슜以... 蹂댁븞 뙣移 諛⑸쾿? 2021.12.13
몴以봽젅엫썙겕 룷꽭, log4j 뙣移 긽 솗씤諛⑸쾿遺꽣 踰꾩쟾蹂 뙣移섎갑踰뺢퉴吏 怨듭

[蹂댁븞돱뒪 썝蹂묒쿋 湲곗옄] 쟾옄젙遺 몴以봽젅엫썙겕꽱꽣룄 섎줈洹4j(Log4j) 痍⑥빟젏뿉 끂異쒕맂 寃껋쑝濡 솗씤릱떎. 몴以봽젅엫썙겕꽱꽣뒗 湲닿툒怨듭瑜 넻빐 Apache 냼봽듃썾뼱 옱떒쓽 痍⑥빟젏 빐寃 蹂댁븞 뾽뜲씠듃瑜 솗씤븯怨 빐寃곕갑븞쓣 뵲瑜 寃껋쓣 沅뚭퀬뻽떎.

뼯몴以봽젅엫썙겕 룷꽭[罹≪쿂=蹂댁븞돱뒪]


Log4j 뙣移 긽 솗씤 諛⑸쾿
슦꽑, 몴以봽젅엫썙겕꽱꽣뒗 Log4j 뙣移섎 빐빞 븯뒗 긽씤吏, 븘땶 吏瑜 솗씤븯湲 쐞빐꽌뒗 2媛吏 諛⑸쾿씠 엳떎怨 꽕紐낇븯怨 엳떎. 泥 踰덉㎏ 媛쒕컻솚寃쎌뿉꽌쓽 솗씤諛⑸쾿쑝濡, 씠겢由쎌뒪 媛쒕컻솚寃쎌뿉꽌뒗 pom.xml 뙆씪쓣 삤뵂빐 Dependency Hierarchy 꺆쓣 삤뵂븳 썑, 紐⑸줉뿉꽌 log4j-core : 2.X.X媛 엳뒗吏 솗씤븯硫 맂떎. 理쒖쥌쟻쑝濡 쟻슜릺뒗 踰꾩쟾 쁒esolved Dependency 紐⑸줉뿉꽌 솗씤씠 媛뒫븯硫, 삉뒗 씠겢由쎌뒪 媛쒕컻솚寃쎌뿉꽌 Maven Dependency 빆紐⑹쓽 紐⑸줉뿉꽌 log4j-core-2.X.X.jar 뙆씪씠 엳뒗吏 솗씤븯硫 맂떎.

몢 踰덉㎏ 슫쁺솚寃쎌뿉꽌 솗씤븯뒗 諛⑸쾿 WAS 꽌踰꾩뿉꽌 쎒 봽濡쒖젥듃媛 諛고룷맂 WEB-INF/lib 뵒젆넗由ъ뿉꽌 log4j-core-2.X.X.jar 뙆씪씠 엳뒗吏 솗씤븯硫 맂떎.

李멸퀬濡 씠踰 痍⑥빟젏뿉 쁺뼢쓣 諛쏅뒗 踰꾩쟾 쁝pache log4j 2.0-beta 9 ~ 2.14.1 紐⑤뱺 踰꾩쟾숈씠硫, 몴以봽젅엫뿉꽌 媛 踰꾩쟾蹂 理쒖큹 諛고룷릺뒗 Log4j쓽 踰꾩쟾 떎쓬怨 媛숇떎.

3.0 : Log4j 2.0
3.1 : Log4j 2.0
3.5 : Log4j 2.1
3.6 : Log4j 2.5
3.7 : Log4j 2.8.2
3.8 : Log4j 2.10.0
3.9 : Log4j 2.11.2
3.10 : Log4j 2.12.1
4.0(踰좏) : Log4j 2.14.0


踰꾩쟾蹂 Log4j 뙣移 諛⑸쾿
몴以봽젅엫썙겕꽱꽣뒗 쟾옄젙遺뿉꽌 젣怨듯븯뒗 濡쒓렇瑜 궗슜븷 寃쎌슦 떎쓬 꽕紐낆쓣 뵲씪븯硫 맂떎. 癒쇱 쁉DK 1.8 씠긽씤 寃쎌슦 쁫og4j-core-2.15.0.jar숇 쟻슜븷 닔 엳뒗뜲, pom.xml뿉 떎쓬쓣 異붽븯硫 맂떎.


븘슱윭 諛고룷떆 긽꽌踰꾩뿉 WEB-INF/lib 뵒젆넗由ъ뿉 log4j-core-2.15.0.jar 뙆씪씠 諛고룷릱뒗吏 솗씤빐빞 븳떎.

몢 踰덉㎏濡 쁉DK 1.7숇줈 쁀pache Log4j 2.0-beta9 ~ 2.10.0숈뿉 빐떦븯뒗 寃쎌슦 쁉ndiLookup 겢옒뒪숇 寃쎈줈뿉꽌 젣嫄고븯硫 맂떎. 긽 겢옒뒪뒗 쁹ip -q -d log4j-core-*.
jar org/apache/logging/log4j/core/lookup/JndiLookup.class 紐낅졊뼱濡 궘젣븷 닔 엳떎.

븘슱윭 Java 8 씠긽쑝濡 뾽洹몃젅씠뱶 썑 Log4j 2.15.0쓣 뙣移섑븯뒗 寃껋씠 媛옣 沅뚯옣릺뒗 諛⑸쾿씠吏留, Java 8濡 뾽洹몃젅씠뱶븷 닔 엳뒗 긽솴씠 븘땺 寃쎌슦뿉뒗 Apache Log4j 踰꾩쟾蹂꾨줈 議곗튂빐빞 븳떎怨 꽕紐낇뻽떎.

Log4j 2.0-beta9 ~ 2.10.0
-JndiLookup 겢옒뒪瑜 寃쎈줈뿉꽌 젣嫄 : zip -q -d log4j-core-*.
jar org/apache/logging/log4j/core/lookup/JndiLookup.class

Log4j 2.10 ~ 2.14.1
JVM 솚寃쎈닔뿉꽌 떎쓬쓣 異붽븳떎.
Dlog4j2.formatMsgNoLookups=true

OS 솚寃쎈닔뿉꽌 떎쓬쓣 異붽븳떎.
LOG4J_FORMAT_MSG_NO_LOOKUPS 솚寃쎈닔瑜 true濡 꽕젙


븳렪, 몴以봽젅엫썙겕꽱꽣뒗 몴以봽젅엫썙겕瑜 쟻슜븯怨 엳吏 븡 JVM 湲곕컲 쎒꽌鍮꾩뒪씪怨 빐룄 옄諛(Java) 湲곕컲 JVM 솚寃쎌쓣 궗슜븯뒗 紐⑤뱺 꽌鍮꾩뒪뿉꽌 Apache Log4 j2瑜 궗슜븯뒗 떆뒪뀥 紐⑤몢 議곗튂 긽씠씪怨 媛뺤“븯怨, 媛쒕컻떆 떎뼇븳 씪씠釉뚮윭由ш 異붽濡 쟻슜릺뼱 엳쓣 닔 엳湲 븣臾몄뿉 諛섎뱶떆 媛쒕컻 솚寃쎌씠굹 뀒뒪듃踰좊뱶 솚寃쎌뿉꽌 솗씤븳 썑뿉 슫쁺꽌踰꾩뿉 諛섏쁺빐빞 븳떎怨 媛뺤“뻽떎. 蹂대떎 옄꽭븳 궗빆 몴以봽젅엫썙겕 룷꽭(湲곗닠吏썝)뿉꽌 솗씤씠 媛뒫븯떎.
[썝蹂묒쿋 湲곗옄(boanone@boannews.com)]

<옉沅뚯옄: 蹂댁븞돱뒪(www.boannews.com) 臾대떒쟾옱-옱諛고룷湲덉>

eGISEC 젙蹂대낫샇 諛 젙蹂댄솕 넄猷⑥뀡뿉 븳 援ъ껜쟻씤 젙蹂대 젣怨듯빀땲떎. 臾대즺 궗쟾벑濡