Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在logback中配置 appenders 符号链接?
我使用 logback 对唯一命名文件(在此处描述)的支持来为每次运行获取单独的日志。我还想有一个符号链接(例如log.current)指向最新的记录器文件。
log.current
logback 是否支持符号链接操作?有没有更好的方法来解决这个问题?
不,它没有。您可以要求 Ceki 实现它,或者自己子类化给定的 appender 并添加您需要的内容。