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
|
@ -6,12 +6,13 @@
|
|||
* Author: Johannes Schwab <https://friendica.jschwab.org/profile/ddorian>
|
||||
*/
|
||||
use Friendica\Core\Addon;
|
||||
use Friendica\Core\Logger;
|
||||
|
||||
function smileybutton_install() {
|
||||
//Register hooks
|
||||
Addon::registerHook('jot_tool', 'addon/smileybutton/smileybutton.php', 'show_button');
|
||||
|
||||
logger("installed smileybutton");
|
||||
Logger::log("installed smileybutton");
|
||||
}
|
||||
|
||||
|
||||
|
@ -19,7 +20,7 @@ function smileybutton_uninstall() {
|
|||
//Delet registered hooks
|
||||
Addon::unregisterHook('jot_tool', 'addon/smileybutton/smileybutton.php', 'show_button');
|
||||
|
||||
logger("removed smileybutton");
|
||||
Logger::log("removed smileybutton");
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue