Core Logger

implement log() function.
more to squash


Core Logger Class

implement log() function
This commit is contained in:
Adam Magness 2018-10-29 19:40:18 -04:00
parent b53157370a
commit 49eff56e5d
46 changed files with 348 additions and 302 deletions

View file

@ -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;