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 2021/07/21 06:55:47 UTC

[GitHub] [skywalking] buyanhub opened a new issue #7348: Some questions about logger refresh mechanism in the agent startup process.

buyanhub opened a new issue #7348:
URL: https://github.com/apache/skywalking/issues/7348


   - Why do you submit this issue?
   - [√] Question or discussion
   
   ___
   ### Question
   - What do you want to know?
   
   I have some doubts about logger in the agent startup process.
   
   The first step of agent startup process is to load configuration items. Source code shows below:
   
   ```
   try {
       SnifferConfigInitializer.initializeCoreConfig(agentArgs);
   } catch (Exception e) {
       // try to resolve a new logger, and use the new logger to write the error log here
       LogManager.getLogger(SkyWalkingAgent.class)
               .error(e, "SkyWalking agent initialized failure. Shutting down.");
       return;
   } finally {
       // refresh logger again after initialization finishes
       LOGGER = LogManager.getLogger(SkyWalkingAgent.class);
   }
   ```
   
   What is the reason for resolve a new logger when catch an Exception and why dose it need to refresh logger again after initialization finishes ?


-- 
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: notifications-unsubscribe@skywalking.apache.org

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



[GitHub] [skywalking] wu-sheng closed issue #7348: Some questions about logger refresh mechanism in the agent startup process.

Posted by GitBox <gi...@apache.org>.
wu-sheng closed issue #7348:
URL: https://github.com/apache/skywalking/issues/7348


   


-- 
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: notifications-unsubscribe@skywalking.apache.org

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



[GitHub] [skywalking] wu-sheng commented on issue #7348: Some questions about logger refresh mechanism in the agent startup process.

Posted by GitBox <gi...@apache.org>.
wu-sheng commented on issue #7348:
URL: https://github.com/apache/skywalking/issues/7348#issuecomment-883966091


   Because agent logger init process could fail, then logger could have different implementation. You should know, the community does not take the responsibility to explain codes.


-- 
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: notifications-unsubscribe@skywalking.apache.org

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