mirror of
https://github.com/Seldaek/monolog.git
synced 2026-04-26 16:15:49 +03:00
[GH-ISSUE #103] Can i have custom Levels in monolog #34
Labels
No labels
Bug
Documentation
Feature
Needs Work
Support
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/monolog#34
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ghost on GitHub (Aug 14, 2012).
Original GitHub issue: https://github.com/Seldaek/monolog/issues/103
Currently i am using custom entity manager to write my logs
But i only want to log those things which i manually want to log.
logger1:
type: stream
path: /var/log/file1.log
level: MY_CUSTOM_LEVEL
logger1:
type: stream
path: /var/log/file2.log
level: MY_CUSTOM_LEVEL2
$logger.log("This is for level 1","MY_CUSTOM_LEVEL")
@Seldaek commented on GitHub (Aug 14, 2012):
If you want a custom log with only some information, why not create a new logger/handler that you pass to the code that logs this custom information? Custom log levels are not supported, and while it's doable by extending a few classes, it's not a recommended way to do things.
@ghost commented on GitHub (Aug 14, 2012):
I have created a new handler as you have said in extending monolog. That is inserting into database. But how can i create new logger as you have said
@Seldaek commented on GitHub (Aug 14, 2012):