Bether Log + Log Wia API

This commit is contained in:
JonatanRek
2020-03-16 14:52:36 +01:00
parent e14a0edb3c
commit f570556d85
2 changed files with 32 additions and 10 deletions

View File

@@ -46,7 +46,9 @@ class LogManager
function write($value, $type = LogRecordType::ERROR){
$record = "[".date("H:m:s")."][".$type."]" . $value . "\n";
$record = Utilities::stringInsert($record,"\n",65);
if (strlen($record) > 65 ) {
$record = Utilities::stringInsert($record,"\n",65);
}
fwrite($this->logFile, $record);
}