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

Print trace only on specific log level #16

Open
Mrucznik opened this issue Jul 1, 2019 · 1 comment
Open

Print trace only on specific log level #16

Mrucznik opened this issue Jul 1, 2019 · 1 comment

Comments

@Mrucznik
Copy link

Mrucznik commented Jul 1, 2019

It would be cool if we could define, in which log level traces will be printed.
For example:

SetLogTraceLevel(logger, ERROR, true);
Log(logger, ERROR, "test"); //would print trace
Log(logger, INFO, "test"); //shouldn't print trace
@maddinat0r maddinat0r transferred this issue from maddinat0r/samp-log Aug 12, 2019
@maddinat0r
Copy link
Owner

Having a per-logger per-loglevel setting would just clutter the config file, but I could add a global per-loglevel setting for this:

LogLevel: # per loglevel settings
  Error:
    PrintCallTrace: false

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

No branches or pull requests

2 participants