src/Diagnostics/TraceLogger.php
public function Log($idsTraceLevel, $messageToWrite)
    {
        if ((int)$this->traceSwitchLevel < (int)$idsTraceLevel) {
            return;
        }

        $backTrace =  debug_backtrace();
        $callerFileName = $backTrace[0]['file'];
        $callerFileLineNumber = $backTrace[0]['line'];
        $callerFunctionName = $backTrace[0]['function'];
        $logMessage = implode(" - ", array(date('Y-m-d H:i:s'),
                                           $callerFileName,
                                           $callerFileLineNumber,
                                           $callerFunctionName,
                                           $messageToWrite));

        parent::Log($idsTraceLevel, $logMessage);
    }
public function Log($idsTraceLevel, $messageToWrite)
    {
        if ((int)$this->traceSwitchLevel < (int)$idsTraceLevel) {
            return;
        }

        $backTrace =  debug_backtrace();
        $callerFileName = $backTrace[0]['file'];
        $callerFileLineNumber = $backTrace[0]['line'];
        $callerFunctionName = $backTrace[0]['function'];
        $logMessage = implode(" - ", array(date('Y-m-d H:i:s'),
                                           $callerFileName,
                                           $callerFileLineNumber,
                                           $callerFunctionName,
                                           $messageToWrite));

        parent::Log($idsTraceLevel, $logMessage);
    }
Logs messages depending on the ids trace level.

@param TraceLevel $idsTraceLevel IDS Trace Level
@param string messageToWrite The message to write.