To install WrkstrmLog
, simply add it to your project using SPM.
To use WrkstrmLog
in your project, simply import the library and start logging. The library includes four different types of logging systems, each with its own set of features and benefits.
WrkstrmLog
is highly customizable and can be extended or modified to fit your specific needs. The library includes a number of sample formatters that can be used as a starting point for creating custom formatters.
For more information about using and customizing WrkstrmLog
, please refer to the project's wiki on GitHub.
- Multiple Logging Systems: Includes print, OSLog, Swift, and another system, each with unique features.
- User-Friendly: Easily integrates with projects using Swift Package Manager (SPM).
- Three Logging Systems: Choose from print, OSLog, and SwiftLog to best fit your project needs.
- Ease of Use: Simple integration into your project using Swift Package Manager (SPM).
To integrate WrkstrmLog
into your iOS or macOS project using SPM, add the following as a dependency in your Package.swift
file:
dependencies: [
.package(url: "https://github.com/wrkstrm/Wrkstrm-Log.git", .upToNextMajor(from: "1.0.0"))
]
And then add WrkstrmLog
to your target dependencies:
targets: [
.target(
name: "YourTarget",
dependencies: ["WrkstrmLog"])
]
To integrate WrkstrmLog
into your project, simply add it via SPM.
-
Importing the Library: Begin by importing
WrkstrmLog
in the Swift file where you want to use the logging functionality.import WrkstrmLog
-
Initialization: Initialize the logger with your desired system and category:
let logger = Log(system: "YourSystem", category: "YourCategory")
-
Logging: Utilize the various logging methods like
verbose
,error
, etc., based on your requirements.logger.verbose("This is a verbose log message") logger.error("This is an error log message")
WrkstrmLog
is built with flexibility in mind. Utilize the provided sample formatters to create custom formatters that perfectly align with your project's requirements.
Visit our GitHub Wiki for comprehensive information on using and customizing WrkstrmLog
.