src/Phossa2/Logger/Entry/LogEntryPrototypeTrait.php
protected function newLogEntry(
        /*# string */ $channel,
        /*# string */ $level,
        /*# string */ $message,
        array $context = []
    )/*# : EventInterface */ {
        if (is_null($this->entry_proto)) {
            return new LogEntry($channel, $level, $message, $context);
        } else {
            $entry = clone $this->entry_proto;
            return $entry
                ->setChannel($channel)
                ->setLevel($level)
                ->setMessage($message)
                ->setContext($context)
                ->setTimestamp();
        }
    }
protected function newLogEntry(
        /*# string */ $channel,
        /*# string */ $level,
        /*# string */ $message,
        array $context = []
    )/*# : EventInterface */ {
        if (is_null($this->entry_proto)) {
            return new LogEntry($channel, $level, $message, $context);
        } else {
            $entry = clone $this->entry_proto;
            return $entry
                ->setChannel($channel)
                ->setLevel($level)
                ->setMessage($message)
                ->setContext($context)
                ->setTimestamp();
        }
    }
protected function newLogEntry ( /*# string */ $ channel , /*# string */ $ level , /*# string */ $ message , array $ context = [ ] ) /*# : EventInterface */ { if ( is_null ( $ this -> entry_proto ) ) { return new LogEntry ( $ channel , $ level , $ message , $ context ) ; } else { $ entry = clone $ this -> entry_proto ; return $ entry -> setChannel ( $ channel ) -> setLevel ( $ level ) -> setMessage ( $ message ) -> setContext ( $ context ) -> setTimestamp ( ) ; } }
Create a log entry

@param  string $channel
@param  string $level
@param  string $message
$param  array $context
@return LogEntryInterface
@access protected
Create a log entry