Ecosyste.ms: Packages

An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

nuget.org : loggingaspect

Assembly to allow logging via Attributes Logging for a class is enabled by decorating it with the [Loggable] attribute and deriving from ContextBoundObject. Another option is to derive from LoggableObject. The [Log] attribute will enable logging with de Default logger. The DefaultMessageLogger and DefaultExceptionLogger in Loggers can be replaced with custom implementations. The [LogWith(Type)] allowes to specify a logger type that should be used for logging the method. A Custom Logger specified by this attribute must have a parameterless constructor. Both Attributes can be used as class / method attributes. When used as class attributes loggers will be called for every external call to the object. It is possible to combine both variants. If the logger implements MethodLogger method entry and leaving will be logged. If the logger implements ExceptionLogger than all exception will be logged. It is possible to implement both interfaces and enable standard and exception logging with just 1 attribute. It is possible to specify multiple loggers In order to create complex Loggers (with parameters / Properties to be provided) you can provide an own ObjectResolver (Loggers.LoggerResolver). e.g. for using a Dependency-Injection container or service locator

Registry - Homepage - JSON
purl: pkg:nuget/loggingaspect
Keywords: Aspect, Logging, Log, Trace, Tracing
License:
Latest release: over 9 years ago
First release: over 124 years ago
Downloads: 6,677 total
Last synced: 15 days ago

    Loading...
    Readme
    Loading...