This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/src/Symfony/Bridge
Fabien Potencier dac7357ba9 feature #26218 [MonologBridge] Allow to change level format in ConsoleFormatter (ostrolucky)
This PR was merged into the 4.1-dev branch.

Discussion
----------

[MonologBridge] Allow to change level format in ConsoleFormatter

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets |
| License       | MIT
| Doc PR        |

I want to use this format `%datetime% <comment>[%level_name%]</comment> %start_tag%%message%%end_tag%`, but ConsoleFormatter formats in a way message looks like this:

![screenshot from 2018-02-19 01-54-21](https://user-images.githubusercontent.com/496233/36359102-d6c20e4c-1517-11e8-9988-8a49efc4cacb.png)

As you see, unnecessary padding looks like anomaly here and there is currently no way to remove it without making own formatter.

This option allows me to replace default padding format with `%s`.

Commits
-------

fbd257c25d [MonologBridge] Allow to change level format
2018-02-20 13:39:01 +01:00
..
Doctrine Fix parse error 2018-02-12 08:29:20 +01:00
Monolog [MonologBridge] Allow to change level format 2018-02-19 01:51:42 +01:00
PhpUnit Merge branch '3.4' into 4.0 2018-02-19 17:50:22 +01:00
ProxyManager Merge branch '4.0' 2018-02-19 17:51:42 +01:00
Twig Merge branch '4.0' 2018-02-19 17:51:42 +01:00