File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 33
44use Buffer \Bufflog ;
55
6+ // putenv("LOG_VERBOSITY=WARNING");
67Bufflog::debug ("I am a debug " );
78Bufflog::debug ("I am a debug with context " , ["my key " => " my value " ]);
89
Original file line number Diff line number Diff line change @@ -118,10 +118,9 @@ private static function createLogger()
118118 private static function setVerbosity ()
119119 {
120120 $ envVerbosity = getenv ("LOG_VERBOSITY " );
121- if ($ envVerbosity !== FALSE && array_key_exists ($ envVerbosity , self ::$ verbosityList )) {
122- self ::$ currentVerbosity = getenv ( " LOG_VERBOSITY " ) ;
121+ if ($ envVerbosity !== FALSE && array_key_exists ($ envVerbosity , self ::$ verbosityList )) {
122+ self ::$ currentVerbosity = self :: $ verbosityList [ $ envVerbosity ] ;
123123 }
124- echo "Log verbosity set to " . self ::$ verbosity ;
125124 }
126125
127126 public static function getLogger ()
You can’t perform that action at this time.
0 commit comments