mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-06-07 09:54:27 +02:00
Core Logger
implement log() function. more to squash Core Logger Class implement log() function
This commit is contained in:
parent
b53157370a
commit
49eff56e5d
46 changed files with 348 additions and 302 deletions
|
@ -9,6 +9,7 @@
|
|||
*/
|
||||
use Friendica\Core\Addon;
|
||||
use Friendica\Core\L10n;
|
||||
use Friendica\Core\Logger;
|
||||
use Friendica\Core\PConfig;
|
||||
|
||||
function gnot_install() {
|
||||
|
@ -17,7 +18,7 @@ function gnot_install() {
|
|||
Addon::registerHook('addon_settings_post', 'addon/gnot/gnot.php', 'gnot_settings_post');
|
||||
Addon::registerHook('enotify_mail', 'addon/gnot/gnot.php', 'gnot_enotify_mail');
|
||||
|
||||
logger("installed gnot");
|
||||
Logger::log("installed gnot");
|
||||
}
|
||||
|
||||
|
||||
|
@ -28,7 +29,7 @@ function gnot_uninstall() {
|
|||
Addon::unregisterHook('enotify_mail', 'addon/gnot/gnot.php', 'gnot_enotify_mail');
|
||||
|
||||
|
||||
logger("removed gnot");
|
||||
Logger::log("removed gnot");
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue