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

JSON formatter? #25

Open
JKoty opened this issue Aug 25, 2017 · 1 comment
Open

JSON formatter? #25

JKoty opened this issue Aug 25, 2017 · 1 comment

Comments

@JKoty
Copy link

JKoty commented Aug 25, 2017

Is it possible to set JsonFormatter and have all log records in JSON?

@miranovy
Copy link

You can set formatter in config.neon:

monolog:
	handlers:
		local:
			factory: Monolog\Handler\RotatingFileHandler(%appDir%/../log/my.log, 7)
			setup:
				- setFormatter(Monolog\Formatter\JsonFormatter())

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