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

logger callbacks #284

Merged
merged 3 commits into from
Feb 20, 2023
Merged

Commits on Feb 20, 2023

  1. logger: introduce logger callbacks

    loggerCallback() calls callbacks, log() and []logFnFilters(),
    which can be set by the libbpfgo consumer via SetLoggerCbs().
    
    This moves output filtering from C libbpf_print_fn() to
    Go filterOutput() which can be set as one of the slice of filter funcs.
    
    This also introduces LogWarnLevel, LogInfoLevel and LogDebugLevel
    constants.
    geyslan committed Feb 20, 2023
    Configuration menu
    Copy the full SHA
    b84f02e View commit details
    Browse the repository at this point in the history
  2. selftest: add log-callbacks

    geyslan committed Feb 20, 2023
    Configuration menu
    Copy the full SHA
    01f10e3 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    c2933e2 View commit details
    Browse the repository at this point in the history