Yii Logging Library 2.1
2024-07-03
1209次浏览
Yii Logging Library package was updated with the following enhancements and new features:
- added new static methods
Logger::assertLevelIsValid(),Logger::assertLevelIsString()andLogger::assertLevelIsSupported(); - added support of nested values in message templates' variables, e. g.
{foo.bar}; - added context providers;
- added
DateTimeandDateTimeImmutablesupport as time in log context; - added
Message::category()method andMessage::DEFAULT_CATEGORYconstant, deprecateCategoryFilter::DEFAULTin favor it; - added
Message::trace()method; - added
Message::time()method; - deprecated method
Logger::validateLevel(); - deprecated
LoggermethodssetTraceLevel()andsetExcludedTracePaths()in favor of context provider usage; - deprecated methods
setCommonContext()andgetCommonContext()in Target class; - replaced
gettype()toget_debug_type()in exception messages generation; - changed the type of the
$levelparameter in theMessageconstructor tostring; - fixed error on parse messages, that contains variables that cannot cast to a string;
- fixed error on formatting trace, when it doesn't contain "file" and "line".
新闻归档
热门标签
- yii3
- 扩展
- 发布
- yii2
- debug
- view
- auth client
- html
- bootstrap
- release
- redis
- Yii 1.1
- apidoc
- mongodb
- http
- db
- validation
- cache
- Yii 2.0
- runner
- extensions
- console
- gii
- error handler
- mailer
- http 客户端
- queue
- twig
- translator
- hydrator
- widget
- sphinx
- log
- assets
- config
- router
- middleware
- symfonymailer
- elasticsearch
- widgets
- swiftmailer
- imagine
- 图书
- rbac
- swagger
- data
- csrf
- logging
- fastroute
- application