/ts-log

A simple logger

Primary LanguageSwift

TSLog

A simple logger.

Installation

To add TSLog to your Xcode project, select File -> Swift Packages -> Add Package Depedancy. Enter https://github.com/FvnctionHQ/ts-log

Usage

TSLog.sI.activeLevel = .debug
...
TSLog.sI.logCall()

Api

Log string.
open func log(_ level: LogLevel, _ str: String, functionName: String = #function, fileName: String = #file)
Output example:
TSLog debug touchesMoved(_:with:) pos: 121.0 x 165.0

Log function call.
open func logCall(functionName: String = #function, fileName: String = #file)
Output example:
TSLog :: init() :: TSThumbControlsModuleCoordinator