Log4j2 with log4j2.xml Configuration Example

You may also like...

Subscribe
Notify of
guest
3 Comments
Oldest
Newest
Inline Feedbacks
View all comments
NathanR
NathanR
June 18, 2016 14:47

Hi,
I get the console logs but not the file.
Any idea?
Where is the file saved? maybe I’m just not seeing it?

Thanks

Memorynotfound.com
Memorynotfound.com
June 20, 2016 08:50
Reply to  NathanR

By default, when you don’t specify the full path, the log file is saved at the root of your project. You can optionally specify the file-path in the fileName attribute. For example:
– mac/linux/unix users can add a path like “/tmp/logfile.log”
– windows users can add a path like “C:tmplogfile.log”

Suresh Janjanam
Suresh Janjanam
May 17, 2022 09:09

Thank you, it is helpful to me.

3
0
Would love your thoughts, please comment.x
()
x