Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Monolog] Added a way to configure the ConsoleFormatter from the ConsoleHandler#30345

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
fabpot merged 1 commit intosymfony:masterfromlyrixx:monolog-console-format
Feb 23, 2019

Conversation

@lyrixx
Copy link
Member

@lyrixxlyrixx commentedFeb 22, 2019
edited
Loading

QA
Branch?master
Bug fix?no
New feature?yes
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets-
LicenseMIT
Doc PR

see alsosymfony/monolog-bundle#297

from that:
image

to that:
image

with some configuration:

diff --git a/config/packages/dev/monolog.yaml b/config/packages/dev/monolog.yamlindex b1998da..66ae2db 100644---a/config/packages/dev/monolog.yaml+++ b/config/packages/dev/monolog.yaml@@ -17,3 +17,6 @@ monolog:type:consoleprocess_psr_3_messages:falsechannels:["!event", "!doctrine", "!console"]+            console_formater_options:+                format:"%%datetime%% %%start_tag%%%%level_name%%%%end_tag%% <comment>[%%channel%%]</> %%message%%%%context%%\n"+                multiline:false

seriquynh reacted with thumbs up emojidamienalexandre and OskarStark reacted with hooray emoji
@fabpot
Copy link
Member

The configuration you have in the description should be the default one, right? Is it possible to make it the default in the bundle? Or at least, add this snippet in the recipe?

lyrixx reacted with thumbs up emoji

@fabpot
Copy link
Member

Thank you@lyrixx.

@fabpotfabpot merged commit5e494db intosymfony:masterFeb 23, 2019
fabpot added a commit that referenced this pull requestFeb 23, 2019
…r from the ConsoleHandler (lyrixx)This PR was merged into the 4.3-dev branch.Discussion----------[Monolog] Added a way to configure the ConsoleFormatter from the ConsoleHandler| Q             | A| ------------- | ---| Branch?       | master| Bug fix?      | no| New feature?  | yes| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets | -| License       | MIT| Doc PR        |see alsosymfony/monolog-bundle#297from that:![image](https://user-images.githubusercontent.com/408368/53246085-f63ed380-36af-11e9-9bff-2e42f8af141c.png)to that:![image](https://user-images.githubusercontent.com/408368/53246115-0787e000-36b0-11e9-93ef-e47ed058adbf.png)with some configuration:```yamldiff --git a/config/packages/dev/monolog.yaml b/config/packages/dev/monolog.yamlindex b1998da..66ae2db 100644--- a/config/packages/dev/monolog.yaml+++ b/config/packages/dev/monolog.yaml@@ -17,3 +17,6 @@ monolog:             type: console             process_psr_3_messages: false             channels: ["!event", "!doctrine", "!console"]+            console_formater_options:+                format: "%%datetime%% %%start_tag%%%%level_name%%%%end_tag%% <comment>[%%channel%%]</> %%message%%%%context%%\n"+                multiline: false```Commits-------5e494db [Monolog] Added a way to configure the ConsoleFormatter from the ConsoleHandler
@lyrixxlyrixx deleted the monolog-console-format branchFebruary 23, 2019 11:45
@lyrixx
Copy link
MemberAuthor

The configuration you have in the description should be the default one, right? Is it possible to make it the default in the bundle? Or at least, add this snippet in the recipe?

It's really a matter of taste. But I could send a PR with commented configuration. WDYT ?

lyrixx added a commit to symfony/monolog-bundle that referenced this pull requestMar 12, 2019
This PR was merged into the 3.x-dev branch.Discussion----------Expose configuration for the ConsoleHandlerLike that we will be able to use this configuration (for example):```yaml        console:            type: console            process_psr_3_messages: false            channels: ["!event", "!doctrine", "!console"]            console_formater_options:                format: "%%datetime%% %%start_tag%%%%level_name%%%%end_tag%% <comment>[%%channel%%]</> %%message%%%%context%%\n"                multiline: false```see alsosymfony/symfony#30345Commits-------cc9abf6 Expose configuration for the ConsoleHandler
@lyrixx
Copy link
MemberAuthor

Here we go:symfony/recipes#552

@nicolas-grekasnicolas-grekas modified the milestones:next,4.3Apr 30, 2019
@fabpotfabpot mentioned this pull requestMay 9, 2019
dani-danigm pushed a commit to dani-danigm/monolog-bundle that referenced this pull requestJun 15, 2022
dani-danigm pushed a commit to dani-danigm/monolog-bundle that referenced this pull requestJun 15, 2022
This PR was merged into the 3.x-dev branch.Discussion----------Expose configuration for the ConsoleHandlerLike that we will be able to use this configuration (for example):```yaml        console:            type: console            process_psr_3_messages: false            channels: ["!event", "!doctrine", "!console"]            console_formater_options:                format: "%%datetime%% %%start_tag%%%%level_name%%%%end_tag%% <comment>[%%channel%%]</> %%message%%%%context%%\n"                multiline: false```see alsosymfony/symfony#30345Commits-------5605600 Expose configuration for the ConsoleHandler
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@fabpotfabpotfabpot approved these changes

@nicolas-grekasnicolas-grekasnicolas-grekas approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

4.3

Development

Successfully merging this pull request may close these issues.

4 participants

@lyrixx@fabpot@nicolas-grekas@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp