Logging
You are viewing documentation for an unreleased version of Craft CMS. Please be aware that the material is changing frequently and may be incomplete or inaccurate, and links may point back to older versions.
Craft::info() and other log helpers should be replaced with Laravel’s Illuminate\Support\Facades\Log facade (opens new window).
#Deprecation Notices
Use CraftCms\Cms\Support\Facades\Deprecator::log() to send deprecation notices to the Deprecation Warnings utility:
CraftCms\Cms\Support\Facades\Deprecator::log(__METHOD__, 'The track() Twig function is deprecated. Activity plugin APIs have been consolidated into the global `activity` variable: {% do activity.track(...) %}');
You can log warnings for newly-deprecated APIs throughout 6.x, or within your compatibility layer.
Do not use the adapter’s deprecation API, as it may trigger its own warning!