Skip to content

Conversation

@ogizanagi
Copy link
Contributor

to match the standard edition configuration, which is way more convenient.
In dev, it'll now log every debug information but events, console errors are now logged natively and we don't need them to be output on stderr (we already have the stacktrace when running the console), and the server:log command allows to see logs in real-time.

path: "%env(SYMFONY_LOG)%"
level: info
type: stream
path: "%env(SYMFONY_LOG)%"
Copy link
Member

@yceruto yceruto Jun 5, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As a convention we're using single quotes ;)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ogizanagi, what about to use a name like LOG_URL for consistency with others variables names (DATABASE_URL, MAILER_URL)?

Copy link
Member

@yceruto yceruto Jun 5, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In any case it would be APP_LOG_PATH (as it's the path to the log file), but I don't remember why is it configurable here, so by default it's '%kernel.logs_dir%/%kernel.environment%.log' :/

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LOG_URL makes sense to me. It's not only a path, it's a url used by the StreamHandler: https://github.com/Seldaek/monolog/blob/master/src/Monolog/Handler/StreamHandler.php#L50

@javiereguiluz
Copy link
Member

@ogizanagi thanks for these changes. They are great and, as you said, they align nicely with the default Symfony practices.

@javiereguiluz javiereguiluz merged commit 96e7fc1 into symfony:master Jun 11, 2017
javiereguiluz added a commit that referenced this pull request Jun 11, 2017
This PR was merged into the master branch.

Discussion
----------

Update logs configuration

to match the standard edition configuration, which is way more convenient.
In dev, it'll now log every debug information but events, console errors are now logged natively and we don't need them to be output on stderr (we already have the stacktrace when running the console), and the `server:log` command allows to see logs in real-time.

Commits
-------

96e7fc1 Update logs configuration
@ogizanagi ogizanagi deleted the log_config branch June 11, 2017 09:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants