faustbrian/ark-log

Utilities to work with ARK logs

dev-master / 1.0.x-dev 2017-10-20 14:49 UTC

README

Installation

Require this package, with Composer, in the root directory of your project.

$ composer require faustbrian/ark-log

Usage

<?php

$parser = new BrianFaust\ArkLog\FileParser();

$parser->parse('ark.log', [
    'Error',
    'Failed',
    'Fatal',
    'Warning',
    'not forging',
    'Blockchain not ready to receive block',
    'Orphaned block',
    'Double forgery'
]);

dump($parser->toCollection());

Testing

$ phpunit

Security

If you discover a security vulnerability within this package, please send an e-mail to Brian Faust at hello@brianfaust.me. All security vulnerabilities will be promptly addressed.

Credits

License

MIT © Brian Faust