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

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -