Skip to content

Commit

Permalink
Add doc for get_check_logger (#7536)
Browse files Browse the repository at this point in the history
Co-authored-by: Julia <[email protected]>
  • Loading branch information
AlexandreYang and hithwen authored Sep 9, 2020
1 parent 153bdfc commit bb2c1d4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions datadog_checks_base/datadog_checks/base/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,9 @@ def init_logging():
def get_check_logger(default_logger=None):
"""
Search the current AgentCheck log starting from closest stack frame.
Caveat: Frame lookup has a cost so the recommended usage is to retrieve and store the logger once
and avoid calling this method on every check run.
"""
from datadog_checks.base import AgentCheck

Expand Down

0 comments on commit bb2c1d4

Please sign in to comment.