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

capnslog: add LogDepth to PackageLogger #46

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

betawaffle
Copy link

I want to be able to wrap capnslog with convenience functions and application-specific helpers, but I need to be able to control the caller depth. This change makes that possible.

This is to enable wrapping capnslog with custom logging helpers where you
would need to control the caller depth.
@barakmich
Copy link
Contributor

On the one hand, I have no problem with it. On the other, this pushes writing, eg, capnslog.DEBUG everywhere onto the user.

Do you have a quick wrapper example, @betawaffle ?

@betawaffle
Copy link
Author

After writing a custom formatter, which I did today, I'm much less certain. Perhaps what's needed instead are some good examples of Entry objects a user could create.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants