Skip to content

Latest commit

 

History

History
17 lines (12 loc) · 585 Bytes

logging.md

File metadata and controls

17 lines (12 loc) · 585 Bytes

Logging all operations

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.

Note: data and actions done on a socket are not logged as well as processes output to prevent logging too many data (at least for now).

use Innmind\OperatingSystem\OperatingSystem\Logger;
use Psr\Log\LoggerInterface;

$os = new Logger(
    $os,
    /* any instance of LoggerInterface */
);

Now operations done with the new $os object will be written to your logs.