DEV Community

Cover image for A Logging System

Posted on


A Logging System

This is a small logging system based of Swift Log which is a Swift logging API package.


Logging System UML

Main Components


The main façade. It can only booted once with a Logger instance.


This will call the LogHandler instance with the proper log level and other params provided by the caller.


A protocol which the log handlers must implement. It mainly contains a log function to pass the params.


An implementation of the LogHandler protocol. Can pass the log message to other log handlers. Useful if you wish to log messages to local and remote systems using different handlers.


An implementation of the LogHandler protocol that sends the messages to standard output or standard error.

Top comments (0)

50 CLI Tools You Can't Live Without

The top 50 must-have CLI tools, including some scripts to help you automate the installation and updating of these tools on various systems/distros.