Skip to content

Conversation

@lyrixx
Copy link
Member

@lyrixx lyrixx commented Oct 3, 2014

Right now, it's not damn easy to configure a custom formatter
for an handler, because the developer should create a new service.
So, only for formatter that does not depend on external
configuration, we can use directly monolog formatter:

heka:
    type: socket
    connection_string: "%heka_endpoint%"
    timeout: 1
    connection_timeout: 1
    formatter: monolog.formatter.json_formatter

Copy link
Member

Choose a reason for hiding this comment

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

I would vote for defining the class directly in the services instead of defining parameters for them

@lyrixx
Copy link
Member Author

lyrixx commented Oct 3, 2014

@stof I addressed your comments

@lyrixx lyrixx changed the title Expose all formater as services Expose all formaters as services Oct 3, 2014
@stof
Copy link
Member

stof commented Oct 4, 2014

Thank you @lyrixx.

@stof stof merged commit 401ee75 into symfony:master Oct 4, 2014
stof added a commit that referenced this pull request Oct 4, 2014
This PR was merged into the 2.6.x-dev branch.

Discussion
----------

Expose all formaters as services

Right now, it's not damn easy to configure a custom formatter
for an handler, because the developer should create a new service.
So, only for formatter that does not depend on external
configuration, we can use directly monolog formatter:

    heka:
        type: socket
        connection_string: "%heka_endpoint%"
        timeout: 1
        connection_timeout: 1
        formatter: monolog.formatter.json_formatter

Commits
-------

401ee75 Expose all formater as services
@lyrixx lyrixx deleted the config-formatter branch October 4, 2014 10:08
@lyrixx
Copy link
Member Author

lyrixx commented Oct 29, 2014

@stof @Seldaek Hello. Can one of you create a new release with this PR? Thanks ;)

@lyrixx
Copy link
Member Author

lyrixx commented Dec 23, 2014

Hi @stof @Seldaek. Could you tag a new release with this PR? thanks.

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

Successfully merging this pull request may close these issues.

2 participants