Logger for Xcode

Related tags

Logging CSwiftLog
Overview

CSwiftLog

Version License Platform

Usage

Log.log("Message text without category")
Log.my.log("Message text with custom category")
Log.network.log("Message text with network category")

Log.ui.log("Message text simple")
Log.ui.log(tag: "TAG", "Message text with tag")
Log.ui.log(tag: "TAG", "Message text with not default type", .success)
Log.ui.log(tag: "TAG", "Message text with full form style", .error, style: .full)

Log.ui.log("Success type", .success, style: .full)
Log.ui.log("Into type", .info, style: .full)
Log.ui.log("Error type", .error, style: .full)
Log.ui.log("Warning type", .warning, style: .full)
Log.ui.log("Canceled type", .canceled, style: .full)

alt text

Add your category:

extension Log {
    
    static let my = Log(category: "MY_CATEGORY")
    static let model = Log(category: "MODEL")
    
}

Enum cases:

enum LogType: String {
    case error      = "πŸ“•"
    case warning    = "πŸ“™"
    case success    = "πŸ“—"
    case info       = "πŸ“˜"
    case canceled   = "πŸ““"
}

enum LogStyle {
    case full
    case short
}

Installation

CSwiftLog is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'CSwiftLog', '1.0.2'

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Author

Andrew Firsenko, t.me/andrewfirsenko

License

CSwiftLog is available under the MIT license. See the LICENSE file for more info.

You might also like...
Tracker - A simple location logger app written in Swift and MVVM architecture
Tracker - A simple location logger app written in Swift and MVVM architecture

Tracker - A simple location logger app written in Swift and MVVM architecture

An Alamofire network activity logger view
An Alamofire network activity logger view

πŸ“’ AlamofireLogbook An Alamofire network activity logger view Installation AlamofireLogbook is available through CocoaPods. To install it, simply add

Swift Logging Utility for Xcode & Google Docs
Swift Logging Utility for Xcode & Google Docs

QorumLogs Swift Logging Utility in Xcode & Google Docs

Styling and coloring your XCTest logs on Xcode Console
Styling and coloring your XCTest logs on Xcode Console

XLTestLog Notes with Xcode 8 and XLTestLog Since Xcode 8 killed XcodeColors, the current way using XCTestLog on Xcode 8 is just plain texts with emoji

Logger for Xcode
Logger for Xcode

CSwiftLog Usage Log.log("Message text without category") Log.my.log("Message text with custom category") Log.network.log("Message text with network ca

A fancy logger yet lightweight, and configurable. πŸ–¨
A fancy logger yet lightweight, and configurable. πŸ–¨

πŸ“£ πŸ“£ Important: Printer can only print console logs if you're running an app in the Simulator. If you're running in a real device it will not print a

Bugfender SDK for iOS, a remote logger tailor-made for mobile
Bugfender SDK for iOS, a remote logger tailor-made for mobile

Bugfender SDK for iOS Bugfender is a cloud service to collect mobile application logs. Developers can control log sending programmatically and manuall

LogDog is designed to work out of the box, you can use the pre-configured logger anytime, anywhere
LogDog is designed to work out of the box, you can use the pre-configured logger anytime, anywhere

LogDog user-friendly logging apple/swift-log api compatible Usage LogDog is designed to work out of the box, you can use the pre-configured logger any

A custom logger implementation and Task Local helper for swift-log

LGNLog A custom logger implementation and TaskLocal helper for Swift-Log. Why and how This package provides two and a half things (and a small bonus):

A lightweight Swift logger, uses `print` in development and `NSLog` in production. Support colourful and formatted output.
A lightweight Swift logger, uses `print` in development and `NSLog` in production. Support colourful and formatted output.

Loggerithm A lightweight Swift logger, uses print in Debug and NSLog in Production with colourful output. Why In Swift, we usually use print to log in

Easy to use and lightweight logger for iOS, macOS, tvOS, watchOS and Linux in Swift.
Easy to use and lightweight logger for iOS, macOS, tvOS, watchOS and Linux in Swift.

Lighty Easy to use and lightweight logger for iOS, macOS, tvOS, watchOS and Linux in Swift. Screenshots Requirements Lighty Version Minimum iOS Target

Simple network activity logger for iOS
Simple network activity logger for iOS

Reqres is a simple library for logging all requests and responses in your app. It supports Alamofire and also requests made via native NSURLSession. ⬆

A network logger for iOS and macOS projects.

OkLog for iOS and macOS OkLog-Swift is a network logger written in Swift highly inspired by simonpercic's original OkLog implementation to be used in

Stock tradings Logger app for iOS
Stock tradings Logger app for iOS

Stock Logger Contributor: Name: Prof. Darren Takaki Author: Name: Ibrahim (Wusiman Yibulayin) Student ID: 0728356 Table of contents Description Gettin

RNH Tracker is a GPS logger for iOS (iPhone, iPad, iPod) Track your location and send your logs to RNH Regatta :-)

RNH Tracker for iOS + WatchOS RNH Tracker is a GPS logger for iOS (iPhone, iPad, iPod) with offline map cache support. Track your location, add waypoi

A simple logger for your swift applications.

AHQSLogger A simple logging system. Usage import AHQSLogger Use the following methods for loggging. Logging an information / debug You can log a simp

Logger lets you quickly send messages to yourself as a means of fast note taking
Logger lets you quickly send messages to yourself as a means of fast note taking

Logger Logger lets you quickly send messages to yourself as a means of fast note taking. All messages you send to yourself show up chronologically. Ta

Tracker - A simple location logger app written in Swift and MVVM architecture
Tracker - A simple location logger app written in Swift and MVVM architecture

Tracker - A simple location logger app written in Swift and MVVM architecture

An Alamofire network activity logger view
An Alamofire network activity logger view

πŸ“’ AlamofireLogbook An Alamofire network activity logger view Installation AlamofireLogbook is available through CocoaPods. To install it, simply add

Releases(1.0.2)
Owner
Andrew Firsenko
iOS & Android developer
Andrew Firsenko
A fancy logger yet lightweight, and configurable. πŸ–¨

?? ?? Important: Printer can only print console logs if you're running an app in the Simulator. If you're running in a real device it will not print a

Hemang 66 Dec 7, 2022
Bugfender SDK for iOS, a remote logger tailor-made for mobile

Bugfender SDK for iOS Bugfender is a cloud service to collect mobile application logs. Developers can control log sending programmatically and manuall

Bugfender 69 Dec 4, 2022
LogDog is designed to work out of the box, you can use the pre-configured logger anytime, anywhere

LogDog user-friendly logging apple/swift-log api compatible Usage LogDog is designed to work out of the box, you can use the pre-configured logger any

Luo Xiu 21 Aug 14, 2022
A custom logger implementation and Task Local helper for swift-log

LGNLog A custom logger implementation and TaskLocal helper for Swift-Log. Why and how This package provides two and a half things (and a small bonus):

17:11 Games 0 Oct 26, 2021
A lightweight Swift logger, uses `print` in development and `NSLog` in production. Support colourful and formatted output.

Loggerithm A lightweight Swift logger, uses print in Debug and NSLog in Production with colourful output. Why In Swift, we usually use print to log in

HongHao Zhang 270 Oct 8, 2022
Easy to use and lightweight logger for iOS, macOS, tvOS, watchOS and Linux in Swift.

Lighty Easy to use and lightweight logger for iOS, macOS, tvOS, watchOS and Linux in Swift. Screenshots Requirements Lighty Version Minimum iOS Target

Abdullah Selek 51 Dec 21, 2022
Simple network activity logger for iOS

Reqres is a simple library for logging all requests and responses in your app. It supports Alamofire and also requests made via native NSURLSession. ⬆

Ackee 85 Aug 21, 2022
A network logger for iOS and macOS projects.

OkLog for iOS and macOS OkLog-Swift is a network logger written in Swift highly inspired by simonpercic's original OkLog implementation to be used in

Diego Trevisan Lara 18 Dec 24, 2021
Stock tradings Logger app for iOS

Stock Logger Contributor: Name: Prof. Darren Takaki Author: Name: Ibrahim (Wusiman Yibulayin) Student ID: 0728356 Table of contents Description Gettin

null 2 Jul 28, 2022
A simple logger for your swift applications.

AHQSLogger A simple logging system. Usage import AHQSLogger Use the following methods for loggging. Logging an information / debug You can log a simp

AndrΓ© Henrique da Silva 0 Dec 29, 2021