Quote:
4. But Logs are not getting created, Means it has not executed/Entered the Main method(It happens only some times)
Wrong. The Main method is ALWAYS called. The problem is the logs aren't being written for some reason.
Without seeing the code, it's impossible to tell you what you're doing wrong.