Simple logging tool
Podfile
specifying the git
source and coresponding tag
.
Example:
pod "SimpleLogger", :git => "https://github.com/thinkaboutiter/SimpleLogger.git", :tag => "1.1.3"
Logger
can be used instead of SimpleLogger
)
Logger.enableLogging(true)
Logger.use_verbosity(.all.rawValue)
»
by default)
Logger.use_delimiter(">")
Logger.set_shouldLogFilePathPrefix(true)
.emoji
by default)Logger.debug.message("Some message to log")
Logger.debug.message("Some message to log").object(someObjectToLog)
.none
.none
default parameter writeToFile: Bool = true
can be used to alter what is written to log file(s)
this would require manual change per each log line used though.multipleFiles
file logging is used
scopeName: String? = nil
parameter with none-nil value (ex. "loginFlow")
will create log files by scopeName
-s rather than by fileName
-s.link |
Stars: 0 |
Last commit: 3 years ago |
Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics