Barebone\Log
Source
<?php
Barebone\Log::use_stack();
Barebone\Log::debug('Just for testing','Some variable is current value is: null');
// some other code
Barebone\Log::warn('Warning something went wrong.', print_r(new \stdClass, true));
// some more code
Barebone\Log::succes('Everything is fine', 'Hello world');
Barebone\Log::save_stack();
Result of the stack
description: Just for testing
type: 7
customerid:
extra info: Some variable is current value is: null
description: Warning something went wrong.
type: 4
customerid:
extra info: stdClass Object
(
)
description: Everything is fine
type: 9
customerid:
extra info: Hello world