Swift logger created with requirements here
Simply download the Logger.swift
file from the repository.
- There are 4 log levels to choose from
verbose
,info
,debug
,error
- Default value for log level is
debug
- Change the log level:
Logger.sharedInstance.logLevel = .verbose
- To log,
Logger.shared.debug("Some debugging information",someParam)
Logger.shared.verbose("Some verbose information",someOtherParam)