This function safely returns the actual state of the log. This can be:
int log_state(ptLogger pLOG )@{