Use system properties OR variables in log4j

后端 未结 5 1553
-上瘾入骨i
-上瘾入骨i 2021-02-05 13:00

I want to to do like this:


        

        
5条回答
  •  离开以前
    2021-02-05 13:47

    Setting the system property does not come into affect here. You'll need to pass it as a argument to java while executing. Try

     java -Derror_log_path=/test/crm/log/error.log
    

    Note: I am not sure if dot . works in there so replaced it with underscore _.

提交回复
热议问题