src/StreamLogger.php
public function setTimeFormat($format) {
        if (is_string($format)) {
            $this->timeFormatter = function ($t) use ($format) {
                return strftime($format, $t);
            };
        } else {
            $this->timeFormatter = $format;
        }

        return $this;
    }
public function setTimeFormat($format) {
        if (is_string($format)) {
            $this->timeFormatter = function ($t) use ($format) {
                return strftime($format, $t);
            };
        } else {
            $this->timeFormatter = $format;
        }

        return $this;
    }
public function setTimeFormat ( $ format ) { if ( is_string ( $ format ) ) { $ this -> timeFormatter = function ( $ t ) use ( $ format ) { return strftime ( $ format , $ t ) ; } ; } else { $ this -> timeFormatter = $ format ; } return $ this ; }
Set the time formatter.

This method takes either a format string for **strftime()** or a callable that must format a timestamp.

@param string|callable $format The new format.
@return $this
@see strftime()
Set the time formatter .