Skip to content
Discussion options

You must be logged in to vote

MTP logs that are written with ILogger interface seems not send to MessageBus.
So it can't write custom reporter that handle log message.

I found there is ILoggingManager::AddProvider is exposed as experimental feature.

I've confirmed it can write custom logger that forward MTP logs to Microsoft.Extension.Logging based logger.
(Except for TestApplication logs. These logs are written with FileLoggerProvider and LoggerFactory is not used.)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@filzrev
Comment options

Answer selected by filzrev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants