java - How to use log4j2 file appender feature in unix environment -


I am new to UNIX. I have the log4j2 config file below when I use this file in UNIX environment, App.log has not been created. Can anyone tell me how to redirect the log to a file in the Unix environment

   & Lt; / Root & gt; & Lt; Root level = "trace" & gt; & Lt; AppenderRef Ref = "file" /> & Lt; / Root & gt; & Lt; / Collections & gt; & Lt; / Configuration & gt;  

You have to change the file name:

  Lt; File name = "file" filename = "/ tmp / app.log" & gt;  

More about the Linux file system:


Comments

Popular posts from this blog

HTML/CSS - Automatically set height width from background image? -

php - Mysql Show Process - Sleep Commands and what to do -

c - What is the address of buf (the local variable in the main function)? -