Trait LogTrait
A trait providing an object short-cut method to logging.
        
    Namespace: Cake\Log
    
    
    
      
  
  
        Method Summary
- 
          log() publicConvenience method to write a message to Log. See Log::write() for more information on writing to logs. 
Method Detail
log() ΒΆ public
log(mixed $message, int|string $level = LogLevel::ERROR, string|array $context = []): boolConvenience method to write a message to Log. See Log::write() for more information on writing to logs.
Parameters
- 
                mixed$message
- Log message. 
- 
                int|string$level optional
- Error level. 
- 
                string|array$context optional
- Additional log data relevant to this message. 
Returns
boolSuccess of log write.
