How to set up log4j configuration with XML and properties

preview_player
Показать описание
We look into how to set up log4j configuration with XML and properties. XML is pretty simple to configure, and properties are similar in structure but might need a bit more explanation. Configuration in log4j could also be done via code, but I have another video for that.

Unlock unlimited opportunities with 50% off your first month of Coursera Plus

Join the channel to get access to more perks:

Or visit my blog at:

Outro music: Sanaas Scylla

#java #log4j #configuration
Рекомендации по теме
Комментарии
Автор

Not to be mean, but you look like a minecraft character, and I like it :D

kncfuxg
Автор

hi sir great video thanks! how to do the same in Karaf? I have not been able to output the System.out in any file

diegoramos
Автор

Hi Daniel - super helpful! just a question, how shall I integrate log4j2 to work with tomcat?

willcorporaljr.
Автор

Hej Daniel,
Very clear and concise demonstration, how would this same translate to log4j2. I am learning this anew and have read there are significant differences between log4j and log4j2. Tusen tack!

abhisk
Автор

Hello, do you have any experiencia on the loggers not showing any info on the console??

gustavovega
Автор

How can we write a custom appender in properties log4j2?

rtzijmi
Автор

Hi Daniel - your videos are really helpful, could you please suggest what properties I should declare if I need to configure properties file in a that way where log entries automatically gets deleted after a specific entries in log file and version is log4j2.

manupanicker
Автор

Bro can you please make a video while doing it from scratch with maven project using vs code also log4j how everything work together.

ayyubayyyub
Автор

Does anybody know how to configure file appender to have threshold level set to ERROR for example?

wiechuuu