A Logging System

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

UML

Main Components

LoggingSystem

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

Logger

This will …

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



UML

Logging System UML



Main Components



LoggingSystem

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



Logger

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



LogHandler

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



MultiplexLogHandler

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.



StreamLogHandler

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


Print Share Comment Cite Upload Translate
APA
Camilo | Sciencx (2024-03-29T05:21:15+00:00) » A Logging System. Retrieved from https://www.scien.cx/2021/06/26/a-logging-system/.
MLA
" » A Logging System." Camilo | Sciencx - Saturday June 26, 2021, https://www.scien.cx/2021/06/26/a-logging-system/
HARVARD
Camilo | Sciencx Saturday June 26, 2021 » A Logging System., viewed 2024-03-29T05:21:15+00:00,<https://www.scien.cx/2021/06/26/a-logging-system/>
VANCOUVER
Camilo | Sciencx - » A Logging System. [Internet]. [Accessed 2024-03-29T05:21:15+00:00]. Available from: https://www.scien.cx/2021/06/26/a-logging-system/
CHICAGO
" » A Logging System." Camilo | Sciencx - Accessed 2024-03-29T05:21:15+00:00. https://www.scien.cx/2021/06/26/a-logging-system/
IEEE
" » A Logging System." Camilo | Sciencx [Online]. Available: https://www.scien.cx/2021/06/26/a-logging-system/. [Accessed: 2024-03-29T05:21:15+00:00]
rf:citation
» A Logging System | Camilo | Sciencx | https://www.scien.cx/2021/06/26/a-logging-system/ | 2024-03-29T05:21:15+00:00
https://github.com/addpipe/simple-recorderjs-demo