GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - seungchan2/ChanLog: simple logging framework for iOS

BranchesTags
Open more actions menu

Latest commit

 

History

19 Commits
19 Commits

Folders and files

NameName
Last commit message
Last commit date
.swiftpm/xcode/package.xcworkspace/xcshareddata
.swiftpm/xcode/package.xcworkspace/xcshareddata
 
 
Sources/ChanLog
Sources/ChanLog
 
 
Tests/ChanLogTests
Tests/ChanLogTests
 
 
.gitignore
.gitignore
 
 
Package.swift
Package.swift
 
 
README.md
README.md
 
 

Repository files navigation

ChanLog

GitHub tag (latest by date)

✨ChanLog is managed in a thread-safe manner, ensuring stable and reliable logging

How to get started

First, install ChanLog via Swift Package Manager or manually.

Then use ChanLog to utilize Logger for iOS 14 and above, and os_log for iOS 13 and below.

You can use ChanLog with collection types and UI properties.

Swift Package Manager

Swift Package Manager is a tool for managing the distribution of Swift code. It’s integrated with the Swift build system to automate the process of downloading, compiling, and linking dependencies.

Xcode 11+ is required to build SnapKit using Swift Package Manager.

To integrate ChanLog into your Xcode project using Swift Package Manager, add it to the dependencies value of your Package.swift

dependencies: [
    .package(url: "https://github.com/seungchan2/ChanLog.git", branch: "main"))
]

Swift Usage

you can import ChanLog

let array: [Int] = [1, 2, 3]

print("This is an info message", array) ❌

array.debug("This is an info message") // debug ⭕
array.minDebug("This is an info message") // simple debug ⭕

array.info("This is an info message") // info ⭕
array.minInfo("This is an info message") // simple info ⭕

array.error("This is an error message") // error ⭕
array.minError("This is an error message") // simple error ⭕

array.custom(category: "CustomCategory", "This is a custom message") // custom ⭕
array.minCustom(category: "CustomCategory", "This is a custom message") // simple custom ⭕

// expected array value 
// currentTime, message, value, fileName, function, lines
time: 2024-06-19 16:53:54
message: This is an info message
value: [1, 2, 3]
fileName: ViewController.swift function: viewDidLoad() 22lines

// expected more simply array value
// If you don't type argument, you can get simple results
message: This is an info message
value: [1, 2, 3]
let label: UILabel = {
    let label = UILabel()
    label.text = "chanLog"
    return label
}()

print("ChanLog Info Label", label.text) ❌

label.info("ChanLog Info Label") // info ⭕
label.text?.minInfo("ChanLog Info Label") // simple info ⭕

// expected label value 
time: 2024-06-20 16:12:19
message: ChanLog Info Label
value: Optional("chanLog")
fileName: ViewController.swift function: viewDidLoad() 28lines

// expected more simply label value 
// If you don't type argument, you can get simple results
message: ChanLog Info Label
value: Optional("chanLog")

More information

debug

Simple logging in the development environment (not shown in the 'Console' app on Mac, only displayed in Xcode console)

info

Similar to error cases but with a longer error description

error

Similar to Info cases but for simple errors

custom

You can make Custom logEvent

About

simple logging framework for iOS

Resources

Readme
Activity

Stars

6 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.