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

The Handler does not support bubble and log level options #12

Open
rvalitov opened this issue Nov 21, 2018 · 2 comments
Open

The Handler does not support bubble and log level options #12

rvalitov opened this issue Nov 21, 2018 · 2 comments

Comments

@rvalitov
Copy link
Contributor

Usually each handler has 2 vital options minimum (example):

  • log level - The minimum logging level at which this handler will be triggered
  • bubble - Whether the messages that are handled can bubble up the stack or not

It would be great if you could add those options, otherwise it's problematic to use your handler in existing code.

@hgouveia
Copy link

i wanted to used this lib, but i need the Log Level option, i don't want to log everything into telegram

@fagci
Copy link

fagci commented Apr 29, 2020

$telegramHandler = new TelegramHandler();
$telegramHandler->setLevel(Logger::ERROR);
$logger->pushHandler($telegramHandler);

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

3 participants