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

@ -8,6 +8,7 @@
*/
use Friendica\Core\Addon;
use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\Core\PConfig;
function planets_install() {
@ -32,7 +33,7 @@ function planets_install() {
Addon::registerHook('addon_settings', 'addon/planets/planets.php', 'planets_settings');
Addon::registerHook('addon_settings_post', 'addon/planets/planets.php', 'planets_settings_post');
logger("installed planets");
Logger::log("installed planets");
}
@ -51,7 +52,7 @@ function planets_uninstall() {
Addon::unregisterHook('addon_settings_post', 'addon/planets/planets.php', 'planets_settings_post');
logger("removed planets");
Logger::log("removed planets");
}
@ -67,7 +68,7 @@ function planets_post_hook($a, &$item) {
*
*/
logger('planets invoked');
Logger::log('planets invoked');
if(! local_user()) /* non-zero if this is a logged in user of this system */
return;