ITLogLib::CloseLogChannel

 

bool CloseLogChannel(const char* pLogChannelName);

 

Purpose:

§      close a logchannel (if it was open)

 

Parameters:

§      pLogChannelName: The name of the logchannel, as defined in the configuration file.

 

Actions:

§      closes the logchannel, flushing all if of its pending output (if it was open)

 

Return value:

§      true after successful operation
You get this return value too if the logchannel wasn’t open before the call.

§      false if an error occurred

 

Notes:

§      Currently this method endlessly tries to flush the output and returns only after succeeding.