vcjmhg edited a comment on issue #4545:
URL: https://github.com/apache/skywalking/issues/4545#issuecomment-702613662


   As following logbak config file shows, the config file define two appenders 
which has different pattern.If user want to colloct all of them , they may need 
use multiple expressions.Of course,user can use "|" to instead it in one 
regular expression .
   ```xml
   <configuration>
     <appender name="FILE" class="ch.qos.logback.core.FileAppender">
       <file>myApp.log</file>
       <encoder>
         <pattern>%date %level [%thread] %logger{10} [%file:%line] 
%msg%n</pattern>
       </encoder>
     </appender>
     <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
       <encoder>
         <pattern>%msg%n</pattern>
       </encoder>
     </appender>
   
     <root level="debug">
       <appender-ref ref="FILE" />
       <appender-ref ref="STDOUT" />
     </root>
   </configuration>
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to