Back to index

natlog  0.91.0
log.cc
Go to the documentation of this file.
00001 #include "conntrack.ih"
00002 
00003 void Conntrack::log(ConntrackRecord::Record const &record, 
00004                         string const &endSeconds, 
00005                         string endMicroSecs)
00006 {
00007     endMicroSecs.insert(0, 6 - endMicroSecs.length(), '0');
00008 
00009     d_stdMsg << "from " << 
00010                 ShowSeconds(record.seconds) << ':' << record.musecs << 
00011             " until " << 
00012                 ShowSeconds(endSeconds) << ':' << endMicroSecs << 
00013                                         ShowSeconds::utcMarker() << ": " <<
00014             record.sourceIP << ':' << record.sourcePort << 
00015                " (via: " << record.viaIP << ':' << record.viaPort << ") "
00016         "to " << record.destIP << ':' << record.destPort << endl;
00017 }