Constructor ActionLogWriter
ActionLogWriter(Action<string>)
Initializes a new instance of the LogWriter.ActionLogWriter class with the specified logging action.
public ActionLogWriter(Action<string> logAction)
Parameters
logActionAction<string>The action to invoke for logging messages. This action is called with the log message as its parameter.
Exceptions
- ArgumentNullException
Thrown if
logActionis null.