Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
irul
/
php-logger
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 55366e58
authored
Aug 31, 2024
by
irul
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
update example
1 parent
6c3bed97
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
example.php
example.php
View file @
55366e5
...
@@ -6,7 +6,10 @@ require_once 'Logger.php';
...
@@ -6,7 +6,10 @@ require_once 'Logger.php';
// $logger->log("basic");
// $logger->log("basic");
/* Define log path and log filename */
/* Define log path and log filename */
$logger
=
Logger
::
get_logger
(
'./logs'
,
'my-log'
);
// $logger = Logger::get_logger('./logs', 'my-log');
$logger
=
Logger
::
get_logger
(
'./logs'
,
'my-log'
,
'warning'
);
/* Normal log, level = info */
$logger
->
log
(
"normal log message"
);
$logger
->
log
(
"normal log message"
);
$logger
->
log
(
"normal log with addtional arguments: %s, %s"
,
"msg1"
,
"msg2"
);
$logger
->
log
(
"normal log with addtional arguments: %s, %s"
,
"msg1"
,
"msg2"
);
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment