PHP code example of jairojeffersont / easy-logger

1. Go to this page and download the library: Download jairojeffersont/easy-logger library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

jairojeffersont / easy-logger example snippets



JairoJeffersont\EasyLogger\Logger;

// Diretório onde os logs serão gravados
$logDir = __DIR__ . '/logs';

// Cria um log de exemplo
$logId = Logger::newLog($logDir, 'meu_log', 'Mensagem de teste', 'INFO');

echo "Log criado com ID: {$logId}";

easy-logger/
├── src/
│   └── Logger.php
├── composer.json
└── README.md