You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by GitBox <gi...@apache.org> on 2020/11/19 13:43:31 UTC

[GitHub] [skywalking] vcjmhg edited a comment on issue #5863: What format should we have in mind for logging to spans?

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


   > I was unaware of the format `AbstractSpan.error()` was already using
   
   @BFergerson, The result of the previous discussion is that we don’t care about the format `AbstractSpan.error()` was already using, we will provide a configuration file to control the format of the log.
   ```yaml
     - name: "log4j2"
       packages:
         - package1
         - package2
       level: "trace"
       pattern: "%date %level [%thread] %logger{10} [%file:%line] %msg%n"
       filter: "Regular expression"
   ```
   In the above config file, `pattern` will control the format of logging information that we need.


----------------------------------------------------------------
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:
users@infra.apache.org