/ios-swift-logger

Swift logger created with requirements as specified

Primary LanguageSwiftApache License 2.0Apache-2.0

ios-swift-logger

Swift logger created with requirements here

Installation

Simply download the Logger.swift file from the repository.

Usage

  • 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)