Bether Log + Log Wia API

This commit is contained in:
jonatanrek committed 2020-03-16 14:52:36 +01:00
1 parent e14a0edb3c
commit f570556d85
2 files changed
+32 -10

No files matched your search

+3 -1
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);
}