You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by GitBox <gi...@apache.org> on 2021/09/16 10:34:54 UTC

[GitHub] [incubator-doris] ccoffline edited a comment on issue #6529: [Proposal] Extend logging framework to support structured log output and custom log format

ccoffline edited a comment on issue #6529:
URL: https://github.com/apache/incubator-doris/issues/6529#issuecomment-912273946


   Extend logging for BE may be like this
   
   ```cpp
   // unstructured logging, output 'here is an info for a query, queryId=xxx'
   LOG(INFO) << "here is an info for a query, queryId=" << queryId;
   // structured logging, output custom log format, like 'here is an info for a query {"queryId":"xxx"}'
   TAG(LOG(INFO)).tag("queryId", queryId).log("here is an info for a query");
   ```


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org