29 $reflMethod = new \ReflectionMethod(
'Monolog\Handler\BrowserConsoleHandler',
'generateScript');
30 $reflMethod->setAccessible(
true);
32 return $reflMethod->invoke(
null);
43(
function (c) {
if (c && c.groupCollapsed) {
44c.log(
"%cfoo%cbar%c",
"font-weight: normal",
"color: red",
"font-weight: normal");
59(
function (c) {
if (c && c.groupCollapsed) {
60c.log(
"%c[foo] %c\"bar\\n[baz]\"%c",
"font-weight: normal",
"color: red",
"font-weight: normal");
77(
function (c) {
if (c && c.groupCollapsed) {
78c.log(
"%c%cfoo%c",
"font-weight: normal",
"background-color: blue; color: white; border-radius: 3px; padding: 0 2px 0 2px",
"font-weight: normal");
79c.log(
"%c%cbar%c",
"font-weight: normal",
"background-color: green; color: white; border-radius: 3px; padding: 0 2px 0 2px",
"font-weight: normal");
80c.log(
"%c%cfoo%c",
"font-weight: normal",
"background-color: blue; color: white; border-radius: 3px; padding: 0 2px 0 2px",
"font-weight: normal");
95(
function (c) {
if (c && c.groupCollapsed) {
96c.groupCollapsed(
"%ctest",
"font-weight: normal");
97c.log(
"%c%s",
"font-weight: bold",
"Context");
98c.log(
"%s: %o",
"foo",
"bar");
120(
function (c) {
if (c && c.groupCollapsed) {
121c.log(
"%ctest1",
"font-weight: normal");
122c.log(
"%ctest2",
"font-weight: normal");
123c.log(
"%ctest3",
"font-weight: normal");
124c.log(
"%ctest4",
"font-weight: normal");
const EOF
How fgetc() reports an End Of File.
@covers Monolog\Handler\BrowserConsoleHandlerTest
Handler sending logs to browser's javascript console with no browser extension required.
static reset()
Forget all logged records.
const DEBUG
Detailed debug information.
getRecord($level=Logger::WARNING, $message='test', $context=array())