summaryrefslogtreecommitdiffstats
path: root/lib/private/Log
diff options
context:
space:
mode:
authorJuan Pablo Villafáñez <jvillafanez@solidgear.es>2017-04-04 10:12:41 +0200
committerJoas Schilling <coding@schilljs.com>2017-04-12 13:03:19 +0200
commit38e5135cb9730a5add715aa8e0b532a2aeb1835e (patch)
treeb62a87bb233dabd886e6dbe2fe005411b2f8620b /lib/private/Log
parentaf42ca20252b166bec2da34970137ec790a18328 (diff)
downloadnextcloud-server-38e5135cb9730a5add715aa8e0b532a2aeb1835e.tar.gz
nextcloud-server-38e5135cb9730a5add715aa8e0b532a2aeb1835e.zip
Reorder the entries of the log for easier reading
Diffstat (limited to 'lib/private/Log')
-rw-r--r--lib/private/Log/File.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/private/Log/File.php b/lib/private/Log/File.php
index 8011f63ab13..9ef071bee5f 100644
--- a/lib/private/Log/File.php
+++ b/lib/private/Log/File.php
@@ -106,16 +106,16 @@ class File {
$version = $config->getValue('version', '');
$entry = compact(
'reqId',
- 'remoteAddr',
- 'app',
- 'message',
'level',
'time',
+ 'remoteAddr',
+ 'user',
+ 'app',
'method',
'url',
- 'user',
+ 'message',
'userAgent',
- 'version'
+ 'version',
);
$entry = json_encode($entry);
$handle = @fopen(self::$logFile, 'a');