mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-12-24 13:40:29 +01:00
Log with milliseconds
This commit is contained in:
parent
71861079e3
commit
135017158c
@ -66,7 +66,7 @@ final class DatabaseLogHandler extends AbstractLogHandler
|
||||
$sql = 'INSERT INTO `log`
|
||||
(`log_time`, `level`, `message`, `class`, `method`, `line`, `origin_type`, `origin_detail`, `dump`)
|
||||
VALUES
|
||||
(NOW(), :level, :message, :class, :method, :line, :origin_type, :origin_detail, :dump)';
|
||||
(NOW(3), :level, :message, :class, :method, :line, :origin_type, :origin_detail, :dump)';
|
||||
$this->db->perform($sql, $values);
|
||||
}
|
||||
}
|
||||
|
@ -56922,7 +56922,7 @@
|
||||
},
|
||||
{
|
||||
"Field": "log_time",
|
||||
"Type": "datetime",
|
||||
"Type": "datetime(3)",
|
||||
"Collation": null,
|
||||
"Null": "YES",
|
||||
"Key": "",
|
||||
|
@ -82,7 +82,7 @@ class Log
|
||||
'Nachricht',
|
||||
'',
|
||||
];
|
||||
$width = ['1%', '4%', '8%', '4%', '10%', '15%', '20%', '10%', '5%', '40%'];
|
||||
$width = ['1%', '4%', '9%', '4%', '10%', '15%', '20%', '10%', '5%', '40%'];
|
||||
$findcols = [
|
||||
'open',
|
||||
'l.id',
|
||||
@ -116,7 +116,7 @@ class Log
|
||||
$sql = "SELECT l.id,
|
||||
'<img src=./themes/new/images/details_open.png class=details>' AS `open`,
|
||||
l.id,
|
||||
DATE_FORMAT(l.log_time,'%d.%m.%Y %H:%i:%s') AS `log_time`,
|
||||
SUBSTRING(DATE_FORMAT(l.log_time,'%d.%m.%Y %H:%i:%s %f'),1,23) AS `log_time`,
|
||||
l.level, l.origin_type, l.origin_detail, l.class, l.method, l.line, l.message, l.id
|
||||
FROM `log` AS `l`";
|
||||
$fastcount = 'SELECT COUNT(l.id) FROM `log` AS `l`';
|
||||
|
Loading…
Reference in New Issue
Block a user