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

@ -11,6 +11,7 @@
use Friendica\Content\Text\BBCode;
use Friendica\Core\Addon;
use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\Core\PConfig;
use Friendica\Util\DateTimeFormat;
use Friendica\Util\Network;
@ -221,12 +222,12 @@ function ijpost_send(&$a, &$b)
EOT;
logger('ijpost: data: ' . $xml, LOGGER_DATA);
Logger::log('ijpost: data: ' . $xml, LOGGER_DATA);
if ($ij_blog !== 'test') {
$x = Network::post($ij_blog, $xml, ["Content-Type: text/xml"])->getBody();
}
logger('posted to insanejournal: ' . $x ? $x : '', LOGGER_DEBUG);
Logger::log('posted to insanejournal: ' . $x ? $x : '', LOGGER_DEBUG);
}
}