matrix-js-sdk
19b1b901 - Inherit `methodFactory` extensions from the parent to the child loggers. (#4809)

Commit
289 days ago
Inherit `methodFactory` extensions from the parent to the child loggers. (#4809) * use methodFactory extensions from the rootLogger in child loggers. * use simple method factory copy AND `childLogger.setLevel(childLogger.getLevel());` This is the important part that actually registers the new methods. * add comments and find a way to make it clearer that the types are correct. * review * additionally fix MatrixRTCSessionManager being initialized before the extension is in place. * Add comment to clarify order of log extensions and creating childs. * review * Set "loglevel" min version to guarantee access to `logger.rebuild`
Author
Parents
Loading