mirror of
https://github.com/friendica/friendica
synced 2025-04-26 16:30:12 +00:00
Add Monolog
This commit is contained in:
parent
1d61645a16
commit
fe8f0e0045
15 changed files with 363 additions and 121 deletions
|
@ -4,6 +4,10 @@
|
|||
*/
|
||||
namespace Friendica;
|
||||
|
||||
require_once 'boot.php';
|
||||
|
||||
use Friendica\Core\Logger;
|
||||
|
||||
/**
|
||||
* Basic object
|
||||
*
|
||||
|
@ -23,7 +27,8 @@ class BaseObject
|
|||
public static function getApp()
|
||||
{
|
||||
if (empty(self::$app)) {
|
||||
self::$app = new App(dirname(__DIR__));
|
||||
$logger = Logger::create('app');
|
||||
self::$app = new App(dirname(__DIR__), $logger);
|
||||
}
|
||||
|
||||
return self::$app;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue