Hi,
The way logging is done is real problem for us now, we do not log message as string but as JSON.
I can override SimpleSAML_Logger but still the way the logger is used is pretty weird, I think about this particular line.
$str = self::formatXMLString($message);
foreach (explode("\n", $str) as $line) {
Logger::debug($line);
}
https://github.com/simplesamlphp/simplesamlphp/blob/master/lib/SimpleSAML/Utils/XML.php#L130
Maybe splitting log by line should be done IN the logger class instead of application code ?
Because of this, I cannot simply log an entire xml message.