Core Logger
implement log() function. more to squash Core Logger Class implement log() function
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
*/
|
||||
use Friendica\Core\Addon;
|
||||
use Friendica\Core\L10n;
|
||||
use Friendica\Core\Logger;
|
||||
use Friendica\Core\PConfig;
|
||||
|
||||
function randplace_install() {
|
||||
@@ -44,7 +45,7 @@ function randplace_install() {
|
||||
Addon::registerHook('addon_settings', 'addon/randplace/randplace.php', 'randplace_settings');
|
||||
Addon::registerHook('addon_settings_post', 'addon/randplace/randplace.php', 'randplace_settings_post');
|
||||
|
||||
logger("installed randplace");
|
||||
Logger::log("installed randplace");
|
||||
}
|
||||
|
||||
|
||||
@@ -63,7 +64,7 @@ function randplace_uninstall() {
|
||||
Addon::unregisterHook('addon_settings_post', 'addon/randplace/randplace.php', 'randplace_settings_post');
|
||||
|
||||
|
||||
logger("removed randplace");
|
||||
Logger::log("removed randplace");
|
||||
}
|
||||
|
||||
|
||||
@@ -79,7 +80,7 @@ function randplace_post_hook($a, &$item) {
|
||||
*
|
||||
*/
|
||||
|
||||
logger('randplace invoked');
|
||||
Logger::log('randplace invoked');
|
||||
|
||||
if(! local_user()) /* non-zero if this is a logged in user of this system */
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user