Skip to content

Loggers

Andrey Taritsyn edited this page Aug 1, 2017 · 3 revisions

Loggers can to record errors and warnings, that occur during the minification. Be a logger can any class, that implements the ILogger interface or inherits the LoggerBase class from the WebMarkupMin.Core.Loggers namespace.

Throw Exception Logger

If during of minification an error occured, then the ThrowExceptionLogger class throws exception of the MarkupMinificationException type.

Null Logger

If you prefer to self-handle minification errors, you can use instead of the real logger the stub in the form of NullLogger class.