mirror of
https://github.com/friendica/friendica
synced 2025-04-26 16:30:12 +00:00
Add Monolog
This commit is contained in:
parent
518f28a7bf
commit
2e602afd3e
18 changed files with 736 additions and 164 deletions
|
@ -6,6 +6,8 @@ namespace Friendica;
|
|||
|
||||
require_once 'boot.php';
|
||||
|
||||
use Friendica\Util\LoggerFactory;
|
||||
|
||||
/**
|
||||
* Basic object
|
||||
*
|
||||
|
@ -25,7 +27,8 @@ class BaseObject
|
|||
public static function getApp()
|
||||
{
|
||||
if (empty(self::$app)) {
|
||||
self::$app = new App(dirname(__DIR__));
|
||||
$logger = $logger = LoggerFactory::create('app');
|
||||
self::$app = new App(dirname(__DIR__), $logger);
|
||||
}
|
||||
|
||||
return self::$app;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue