Skip to content

RedRoma/Archeota

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

> A SWIFT LOGGER

Archeota: Keeper of the archives

Carthage compatible Build Status

Download

Carthage

github "RedRoma/Archeota"

API

The Archeota Logger can be accessed by importing the Archeota package.

import Archeota

From there, interact with the LOG object to print messages.

LOG.debug("Debug messages are verbose messages useful for debugging")
LOG.info("Info messages are for FYI-level messages")
LOG.warn("Warn messages are for errors and weird situations that does not adversely impact the user experience")
LOG.error("Error messages are the most severe messages, and represent messages that affect the user's experience.")

Settings

Log Level

You can adjust the Log Level by tuning the LOG.level enum. The Logger will ignore messages that are below this level.

LOG.level = .warn

LOG.info("Info and Debug messages are ignored")
LOG.warn("Warn and Error messages are printed")

The default LogLevel is .info.