简体   繁体   中英

Log4j2 XML system file separator

Is there a way in the log4j2.xml file to use the OS's file separator when creating paths. I know in Java this can be referenced by File.separator. I haven't seen a way to this in the log4j2 configuration docs. Thanks.

You may have a solution looking for a problem. I use "/" in all my Log4J configurations, Win, Mac or Linux, with no issues at all. Naturally, "\\" doesn't work on the latter two.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM