Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

[Solved] How to log a Deprecation Notice


Go to End


2 Posts   889 Views

Avatar
Antony

Community Member, 4 Posts

2 December 2014 at 8:38am

Edited: 03/12/2014 4:46pm

Hi
How do I log a Deprecation Notice?

I have set in my _config.php:

// log errors and warnings
SS_Log::add_writer(new SS_LogFileWriter('../silverstripe-errors-warnings.log'), SS_Log::WARN, '<=');
SS_Log::add_writer(new SS_LogEmailWriter('myemailaddress'), SS_Log::WARN, '<=');

This doesn't log anything.

Any ideas please?

Thanks

Updated:
This works - SS_Log::add_writer(new SS_LogFileWriter('../silverstripe-errors-notices.log'), SS_Log::NOTICE);

Avatar
camfindlay

Forum Moderator, 267 Posts

22 December 2014 at 11:19am

glad you got it sorted.