Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Написать новый источник данных VardumpInformer #3

Open
nezhelskoy opened this issue Dec 8, 2015 · 0 comments
Assignees

Comments

@nezhelskoy
Copy link
Contributor

Примерный сценарий использования:

$logger = new \Onphp\Log\LoggerInstance(
    'testName',
    [new \Onphp\Log\Target\StreamTarget('test.log')],
    [new \Onphp\Log\Informer\VardumpInformer()]
);

$a = 'test string';
$b = 345;
$c = false;

$logger->info('some text', [
    'vardump' => [$a, $b, $c],
]);

В логе получить следующий вид записи:

$ cat test.log
2015-12-08 13:34:16 INFO    some text
Vardump:
$a = 'test string'
$b = 345
$c = false
@nezhelskoy nezhelskoy self-assigned this Dec 8, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant