Skip to content

SLogger - is a very-very Simple console Logger in 20-ty lines of code which adds some fancy and noticeable icons, file name and line to your messages.

License

Notifications You must be signed in to change notification settings

bigMOTOR/SLogger

Repository files navigation

SLogger

SLogger - is a very-very Simple console Logger in 20-ty lines of code which adds some fancy and noticeable icons, file name and line to your messages. I use it personaly for my own needs, but welcome to join if you need something like that. 🙃

Getting Started

Just write:

SLogger.debug("Hello World!")
SLogger.info("Hello World!")
SLogger.warning("Hello World!")
SLogger.error("Hello World!")

You'll get the console output:

.../SLoggerTests.swift, 6
🛠 Debug: Hello World!
.../SLoggerTests.swift, 7
✅ Info: Hello World!
.../SLoggerTests.swift, 8
⚠️ Warning: Hello World!
.../SLoggerTests.swift, 9
⛔️ Error: Hello World!

Also you are able to call:

SLogger.fatal("Hello World!")

It will lead to assertionFailure() with aproprite log.

About

SLogger - is a very-very Simple console Logger in 20-ty lines of code which adds some fancy and noticeable icons, file name and line to your messages.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages