You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: documentation/advanced/logging.md
+3-7Lines changed: 3 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,16 +2,12 @@
2
2
3
3
If you want to trace everything that is done on your operating system you can use the logger decorator that will automatically write to your log file (almost) all operations.
4
4
5
-
!!! note ""
6
-
Data and actions done on a socket are not logged as well as processes output to prevent logging too much data (at least for now).
7
-
8
5
```php
9
-
use Innmind\OperatingSystem\OperatingSystem\Logger;
6
+
use Innmind\OperatingSystem\Config\Logger;
10
7
use Psr\Log\LoggerInterface;
11
8
12
-
$os = Logger::psr(
13
-
$os,
14
-
/* any instance of LoggerInterface */
9
+
$os = $os->map(
10
+
Logger::psr(/* any instance of LoggerInterface */),
0 commit comments