Skip to content

Madimo/SwiftLogger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SwiftLogger

A simple logger system for Swift.

Usage

import Logging

let logger = Logger()
logger.add(handler: ConsoleLogHandler())
logger.info("Log anything you want.")

Using Log Levels

logger.trace("This is a log message.")
logger.info("This is a log message.")
logger.debug("This is a log message.")
logger.warning("This is a log message.")
logger.error("This is a log message.")
logger.fatal("This is a log message.")