-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_config.php
27 lines (20 loc) · 971 Bytes
/
_config.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php
/**
* This work is licensed under the Creative Commons Attribution-NonCommercial 4.0 International License.
* To view a copy of this license, visit http://creativecommons.org/licenses/by-nc/4.0/.
*/
// Extensions
Object::add_extension('Member', 'MCMemberExtension');
Object::add_extension('DataObject', 'DataObjectExtension');
Object::add_extension('SiteConfig', 'MCSiteConfigExtension');
// CMS Requirements
LeftAndMain::require_javascript(basename(__DIR__) . '/javascript/actions.js');
/**********************************/
/* Logging Information and Errors */
/**********************************/
// Clear any default writers
SS_Log::clear_writers();
// Logging notices & information
SS_Log::add_writer(new SS_LogFileWriter('../assets/silverstripe-mailchimp-module/logs/info.log'), SS_Log::NOTICE, '=');
// Logging warnings & errors
SS_Log::add_writer(new SS_LogFileWriter('../assets/silverstripe-mailchimp-module/logs/error.log'), SS_Log::WARN, '<=');