Skip to content

Logging Library to log events to event viewer, file etc.

Notifications You must be signed in to change notification settings

andmitrou/Logger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Logger

Logger is a library that enables to use multiple log mechanisms in order to log information, warnings, exceptions casused in code.
For now it supports FileLog and EventViewer log but it will be extended for Mail, Database etc.

The architecture is based on the Bridge Pattern.

Bridge Pattern

The bridge pattern is a design pattern used in software engineering that is meant to "decouple an abstraction from its implementation so that the two can vary independently", introduced by the Gang of Four. The bridge uses encapsulation, aggregation, and can use inheritance to separate responsibilities into different classes. When a class varies often, the features of object-oriented programming become very useful because changes to a program's code can be made easily with minimal prior knowledge about the program. The bridge pattern is useful when both the class and what it does vary often. The class itself can be thought of as the abstraction and what the class can do as the implementation. The bridge pattern can also be thought of as two layers of abstraction.

Bridge Pattern

Logger Analysis using Bridge Pattern

ConcreteImplementors: The classes that are inside Loggers namespace EventViewerLogger, FileLogger
Implementor: The Interface ILog which is a property to the abstraction.
Abstraction: The abstract class GenericLogger. This class has as property the implementor.
Redifined Abstraction: Each class inherits from GenericLogger here is the ApplicationLogger.

About

Logging Library to log events to event viewer, file etc.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages