// Prints the message to console. // // rawRlogMsg: log message received from channel. // // prefix: log prefix func (conf *ConsoleLogger) printMsg(rawRlogMsg *common.RlogMsg, prefix string) { msg := common.FormatMessage(rawRlogMsg, prefix, conf.removeNewlines) fmt.Fprintln(conf.outputFile, msg) }
// Prints the message to console. // // rawRlogMsg: log message received from channel. // // prefix: log prefix func (self *GoCheckLogger) printMsg(rawRlogMsg *common.RlogMsg, prefix string) { msg := common.FormatMessage(rawRlogMsg, prefix, false) self.c.Log(msg) }
//writeMsg writes message to file func (conf *fileLogger) writeMsg(rawRlogMsg *common.RlogMsg, prefix string) error { _, err := fmt.Fprintln(conf.fileHandle, common.FormatMessage(rawRlogMsg, prefix, conf.removeNewlines)) return err }
// Prints the message to console. // // rawRlogMsg: log message received from channel. // // prefix: log prefix func (self *TestingLogger) printMsg(rawRlogMsg *common.RlogMsg, prefix string) { msg := common.FormatMessage(rawRlogMsg, prefix, false) // note that t.Log() entry is unconditionally prefixed with this file and line // number, so embed a newline to make it easier to distinguish message. self.t.Logf("\n%s", msg) }