MCPcopy Create free account
hub / github.com/MaxBelkov/visualsyslog / WriteToLogRawMessage

Function WriteToLogRawMessage

source/main.cpp:679–699  ·  view source on GitHub ↗

---------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

677}
678//---------------------------------------------------------------------------
679bool WriteToLogRawMessage(char * p)
680{
681 if( ! MainCfg.bWriteRaw )
682 return true;
683
684 if( ! rawout.IsOpen() )
685 {
686 rawout.Open(RawFile, GENERIC_WRITE,
687 FILE_SHARE_READ | FILE_SHARE_WRITE,
688 OPEN_ALWAYS,
689 FILE_ATTRIBUTE_NORMAL);
690 if( ! rawout )
691 return false;
692 rawout.ToEnd();
693 }
694
695 String s(p);
696 s += ::CR;
697 rawout << s;
698 return true;
699}
700//---------------------------------------------------------------------------
701bool WriteToLogError(String fmt, ...)
702{

Callers 2

UdpReceiveMessageFunction · 0.85
TcpReceiveMessageFunction · 0.85

Calls 3

ToEndMethod · 0.80
IsOpenMethod · 0.45
OpenMethod · 0.45

Tested by

no test coverage detected