Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Entry PrintDepth family functions. #1297

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Commits on Nov 22, 2021

  1. call getCaller only if Caller is nil, which makes custom Caller, like…

    … InfoDepth(depth int, args ...string) possible
    haixinchen committed Nov 22, 2021
    Configuration menu
    Copy the full SHA
    025594a View commit details
    Browse the repository at this point in the history
  2. feat(entry): Add Entry PrintDepth family functions.

    + LogDepth acts as Info but uses depth to determine which call frame to log. LogDepth(InfoLevel, 0, "msg") is the same as Log(InfoLevel, "msg").
    + [LogDepth logs at a specified call frame.](https://github.com/grpc/grpc-go/blob/49f638878973e2ccc20859209a73e1c3a02de015/grpclog/loggerv2.go#L249)
    haixinchen committed Nov 22, 2021
    Configuration menu
    Copy the full SHA
    744a442 View commit details
    Browse the repository at this point in the history