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

@ -10,6 +10,7 @@ use Friendica\Content\Text\BBCode;
use Friendica\Content\Text\HTML;
use Friendica\Core\Addon;
use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\Core\PConfig;
use Friendica\Database\DBA;
use Friendica\Util\Network;
@ -312,11 +313,11 @@ function wppost_send(&$a,&$b) {
EOT;
logger('wppost: data: ' . $xml, LOGGER_DATA);
Logger::log('wppost: data: ' . $xml, LOGGER_DATA);
if ($wp_blog !== 'test') {
$x = Network::post($wp_blog, $xml)->getBody();
}
logger('posted to wordpress: ' . (($x) ? $x : ''), LOGGER_DEBUG);
Logger::log('posted to wordpress: ' . (($x) ? $x : ''), LOGGER_DEBUG);
}
}