Change string options to constants. Instead of code like this:
tiny_log('Some error message', 'pos'); // just passing option
tiny_log('Some error message', 'pos|error'); // with error type 'error'
tiny_log('Some error message', 'pos|info'); // with error type 'info'
tiny_log('Some error message', 'info', Option::POS); // just passing option
tiny_log('Some error message', 'error', Option::POS); // with error type 'error'
tiny_log('Some error message', 'info', Option::POS; // with error type 'info'