10000 minor #50435 [AssetMapper] Using a separate logger channel (weaverryan) · symfony/symfony@f65b668 · GitHub
[go: up one dir, main page]

Skip to content

Commit f65b668

Browse files
committed
minor #50435 [AssetMapper] Using a separate logger channel (weaverryan)
This PR was merged into the 6.3 branch. Discussion ---------- [AssetMapper] Using a separate logger channel | Q | A | ------------- | --- | Branch? | 6.3 | Bug fix? | yes-ish | New feature? | yes-ish | Deprecations? | no | Tickets | None | License | MIT | Doc PR | Still TODO Super minor - putting these in their own logging channel might be useful. For example, we could (later, or in a 3rd party bundle) grab all of these warnings and write them out as JavaScript console warnings to make it easier for the user to see (in dev only). Cheers! Commits ------- 9f31576 [AssetMapper] Using a separate logger channel
2 parents 268e740 + 9f31576 commit f65b668

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Symfony/Bundle/FrameworkBundle/Resources/config/asset_mapper.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@
122122
service('logger'),
123123
])
124124
->tag('asset_mapper.compiler')
125+
->tag('monolog.logger', ['channel' => 'asset_mapper'])
125126

126127
->set('asset_mapper.compiler.source_mapping_urls_compiler', SourceMappingUrlsCompiler::class)
127128
->tag('asset_mapper.compiler')
@@ -132,6 +133,7 @@
132133
service('logger'),
133134
])
134135
->tag('asset_mapper.compiler')
136+
->tag('monolog.logger', ['channel' => 'asset_mapper'])
135137

136138
->set('asset_mapper.importmap.manager', ImportMapManager::class)
137139
->args([

0 commit comments

Comments
 (0)
0