Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

zhaogood's avatar

Is there an easy way to log only one level?

Hi everyone,

I would like to log only 'debug' level to a slack channel. It seems in config/logging.php 'channels' array, I can only set the minimum level threshold in 'level' field. Do you guys know if there is an easy way to do it?

Thanks.

0 likes
3 replies
zhaogood's avatar

Thank you. I understand I can use a different channel, but it means I need to update all existing codes. I would like to find an easy way like using config to do it.

Please or to participate in this conversation.