<commit_before>express-php-monolog
===================

Monolog module for express-php<commit_msg>Adding exemple in README<commit_after>express-php-monolog
===================

Monolog module for express-php


```php

require_once('express.phar');
require_once('express-monolog.phar');


use express\express;

date_default_timezone_set('UTC');

$app = express::module('app', ['core', 'monolog']);

$app->config(function ($logger, $loggerHandlerFactory) {
    $logger->pushHandler($loggerHandlerFactory->streamHandler('php://stderr', $logger->WARNING));
  });

$app->run(function ($logger) {
    $logger->debug('this is a debug');
    $logger->warning('this is a warning');
  });

express::run()

```
{'fraction_non_alphanumeric': 0.2246065808297568, 'fraction_numerical': 0.0, 'mean_word_length': 6.446808510638298, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 10, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1929849', 'n_tokens_mistral': 220, 'n_tokens_neox': 213, 'n_words': 38}