Default settings specify the following formats
- Starts with "xxLOG(...)", ends with ";"
CILOG(info,
"[{}] pid[{}], success to find avc sync word, skip_total[{}]",
id_, pid_, skip_total_);
DASHLOG(log_module(), debug,
"[{}] track[{}], success to make segment, type[{}], pts[{},{}], "
"dur[{},{}], sample-cnt[{}], size[{}], llsegno[{}]",
id_, m->id_, type, std::uint64_t(si->pts_), pts_ms, si->duration_,
dur, sample_cnt, seg_size, si->no_);
LOG(error) << "hello";
- Starts with "xxlogxx.info|debug|...", ends with ";"
logger.Write(string("mainThread"), string(""), CiLogEvent::eDebug, string("test"));
theLogger.info(WHERE1(m_channelID), "mpeg2ts SegmentType : %s", g_cfg->GetMpeg2tsSegmentType().c_str());
logger.info("hello,world :)");
LOGGER.debug("hello,{}",world);
- Starts with "xxlogxx.Info|Debug|...", ends with ")"
clog.Debugf("[%s] origin check success.", a.addr)
log.Fatal("fatal error")
log.Println("hello, World!!! :)")
log.Fatalf("can not enable coredump, error(%s)", err.Error())
clog.Infof1(vfile.ReqID(), "big contents without supporting Range header => bypass")
clog.Errorf1("failed to handle message, %s, %v", noti.hashKey, string(noti.message), err)
clog.Errorf1(reqID, "%v", err)
clog.Debugf1(reqID, "to origin, %s %s %v timeout:%v", req.Method, req.URL, req.Header, timeout)