RedBeanPHP\Logger\RDefault::log PHP Method

log() public method

This is the default/reference implementation of a logger. This method will write the message value to STDOUT (screen) unless you have changed the mode of operation to C_LOGGER_ARRAY.
public log ( ) : void
return void
    public function log()
    {
        if (func_num_args() < 1) {
            return;
        }
        foreach (func_get_args() as $argument) {
            if (is_array($argument)) {
                $log = var_export($argument, TRUE);
                if ($this->mode === self::C_LOGGER_ECHO) {
                    echo $log;
                } else {
                    $this->logs[] = $log;
                }
            } else {
                if ($this->mode === self::C_LOGGER_ECHO) {
                    echo $argument;
                } else {
                    $this->logs[] = $argument;
                }
            }
            if ($this->mode === self::C_LOGGER_ECHO) {
                echo "<br>" . PHP_EOL;
            }
        }
    }