如何为多个用户创建多个日志文件。日志文件将根据来自API的用户名和用户名生成,并存储在log4j中。属性文件
看看MDC:https://www.baeldung.com/mdc-in-log4j-2-logback
您可以将用户名放入MDC,然后使用log4j配置文件根据MDC密钥对日志消息进行分组。
如何为多个用户创建多个日志文件。日志文件将根据来自API的用户名和用户名生成,并存储在log4j中。属性文件
看看MDC:https://www.baeldung.com/mdc-in-log4j-2-logback
您可以将用户名放入MDC,然后使用log4j配置文件根据MDC密钥对日志消息进行分组。
javascript python java c# php android html jquery c++ css ios sql mysql arrays asp.net json python-3.x ruby-on-rails .net sql-server django objective-c excel regex ruby linux ajax iphone xml vba spring asp.net-mvc database wordpress string postgresql wpf windows xcode bash git oracle list vb.net multithreading eclipse algorithm macos powershell visual-studio image forms numpy scala function api selenium