Skip to content

Commit dbd3d69

Browse files
authored
Updated README.md
1 parent 48add3c commit dbd3d69

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ XLog::info('verify transaction request', $request->all());
6868
## Log exception
6969

7070
```php
71-
//The first parameter is the thrown exception. second parameter is the level of the log.
72-
XLog::exception($exception, 'error');
73-
XLog::exception($e, 'emergency');
71+
// The first parameter is the thrown exception. The second parameter specifies whether to log the trace or not. the third parameter is the level of the log. default value is `error`.
72+
XLog::exception($exception, true);
73+
XLog::exception($exception, true, 'error');
74+
XLog::exception($e, false, 'emergency');
7475
```

0 commit comments

Comments
 (0)