If you are writing a test test or module checking your code, using a static class is not recommended.
I would bind an EventLog in a class that implements the common ILog interface. You can enter this class or create it in each class that uses it. This should give you better flexibility in the future if you need to replace EventLog with some other way of logging.
Interface example:
public interface ILog { void Info(string format, params object[] args); void Warn(string format, params object[] args); void Error(Exception exception); }
You can expand or modify this to create a contract that makes sense to you.
source share