--------------------------------------------------------------------------- bool TSyslogMessage::SaveToFile(const String & file) { TFile out(file, GENERIC_WRITE, FILE_SHARE_READ | FILE_SHARE_WRITE, OPEN_ALWAYS, FILE_ATTRIBUTE_NORMAL); if( ! out ) return false; out.ToEnd(); return Save(out); } */ //----------------------------------
| 221 | */ |
| 222 | //--------------------------------------------------------------------------- |
| 223 | String TSyslogMessage::ToStringClipboard(void) |
| 224 | { |
| 225 | return |
| 226 | DateStr + '\t' + SourceAddr + '\t' + HostName + '\t' + |
| 227 | ((PRI >= 0) ? (Facility + '\t' + Priority) : String('\t')) + '\t' + |
| 228 | Tag + '\t' + Msg + CR; |
| 229 | } |
| 230 | //--------------------------------------------------------------------------- |
| 231 | // {time} {ip} {host} {facility} {priority} {tag} {message} |
| 232 | String TSyslogMessage::Format(String fmt) |
no outgoing calls
no test coverage detected