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