Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
die_coolen_jungs
our_own_cloud_project
Commits
8471340d
Commit
8471340d
authored
Apr 17, 2013
by
Bernhard Posselt
Browse files
use date and time instead of timestamp
parent
3f7643ef
Changes
1
Show whitespace changes
Inline
Side-by-side
lib/log/owncloud.php
View file @
8471340d
...
...
@@ -49,7 +49,8 @@ class OC_Log_Owncloud {
public
static
function
write
(
$app
,
$message
,
$level
)
{
$minLevel
=
min
(
OC_Config
::
getValue
(
"loglevel"
,
OC_Log
::
WARN
),
OC_Log
::
ERROR
);
if
(
$level
>=
$minLevel
)
{
$entry
=
array
(
'app'
=>
$app
,
'message'
=>
$message
,
'level'
=>
$level
,
'time'
=>
time
());
$time
=
date
(
"Y-m-d H:i:s"
,
time
());
$entry
=
array
(
'app'
=>
$app
,
'message'
=>
$message
,
'level'
=>
$level
,
'time'
=>
$time
);
$handle
=
@
fopen
(
self
::
$logFile
,
'a'
);
if
(
$handle
)
{
fwrite
(
$handle
,
json_encode
(
$entry
)
.
"
\n
"
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment