Click or drag to resize

LoggerSwallow Method

Overload List
  NameDescription
Public methodSwallow(Action)
Runs the provided action. If the action throws, the exception is logged at Error level. The exception is not propagated outside of this method.
Public methodSwallowT(FuncT)
Runs the provided function and returns its result. If an exception is thrown, it is logged at Error level. The exception is not propagated outside of this method; a default value is returned instead.
Public methodSwallow(Task)
Logs an exception is logged at Error level if the provided task does not run to completion.
Public methodSwallowT(FuncT, T)
Runs the provided function and returns its result. If an exception is thrown, it is logged at Error level. The exception is not propagated outside of this method; a fallback value is returned instead.
Top
See Also