Skip to content

Commit 3fa817b

Browse files
committed
Fixed systax
1 parent 29c2c1e commit 3fa817b

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ Inspect the [source code](https://github.com/technicalguru/php-utils/blob/src/Tg
7878
Logging is very simple. Set your log level (if not INFO) and start logging:
7979

8080
```
81-
use TgLog::Log;
81+
use TgLog\Log;
8282
8383
// Set the log level
8484
Log::setLogLevel(Log::ERROR);
@@ -99,7 +99,7 @@ Log::error('We have some problem here:', $object);
9999
The Log can also help when you need to debug something:
100100

101101
```
102-
use TgLog::Log;
102+
use TgLog\Log;
103103
104104
// Get the stacktrace
105105
$stacktrace = Log::getStackTrace(__FILE__);
@@ -113,7 +113,7 @@ can easily use the function without this argument to have the current file inclu
113113

114114
```
115115
$stacktrace = Log::getStackTrace();
116-
Log::infoStackTrace(__FILE__);
116+
Log::infoStackTrace();
117117
```
118118

119119
## User Notifications
@@ -123,8 +123,8 @@ be displayed in another script, another HTTP call or even just later. The follow
123123
will remember the message across multiple call within a session.
124124

125125
```
126-
use TgLog::Log;
127-
use TgLog::Success;
126+
use TgLog\Log;
127+
use TgLog\Success;
128128
129129
Log::register(new Success('Your data was saved successfully.));
130130
```
@@ -135,8 +135,8 @@ the error log when it's an instance of `Debug`, `Error`, `Warning` or `Info`.
135135
In another call or script you can retrieve your messages again to display:
136136

137137
```
138-
use TgLog::Log;
139-
use TgLog::Success;
138+
use TgLog\Log;
139+
use TgLog\Success;
140140
141141
foreach (Log::get() AS $message) {
142142
switch ($message->getType()) {

0 commit comments

Comments
 (0)