Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
framadate
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nounous
framadate
Commits
31f62cd6
Commit
31f62cd6
authored
10 years ago
by
Olivier PEREZ
Browse files
Options
Downloads
Patches
Plain Diff
LogService: Add a line break at the en of lines
parent
5d8e5362
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/classes/Framadate/Services/LogService.php
+7
-1
7 additions, 1 deletion
app/classes/Framadate/Services/LogService.php
with
7 additions
and
1 deletion
app/classes/Framadate/Services/LogService.php
+
7
−
1
View file @
31f62cd6
...
...
@@ -14,8 +14,14 @@ class LogService {
$this
->
output
=
$output
;
}
/**
* Log a message to the log file.
*
* @param $tag string A tag is used to quickly found a message when reading log file
* @param $message string some message
*/
function
log
(
$tag
,
$message
)
{
error_log
(
'['
.
$tag
.
'] '
.
$message
,
3
,
$this
->
output
);
error_log
(
'['
.
$tag
.
'] '
.
$message
.
"
\n
"
,
3
,
$this
->
output
);
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment