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 - NeilsUltimateLab/AppLog: Printing Logs in File and present in viewController.

BranchesTags
Open more actions menu

Latest commit

 

History

9 Commits
9 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
AppLog
AppLog
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 

Repository files navigation

AppLog

Printing Logs in File and present in viewController.

Usage

AppLog.print("Hey error occured")

Output:

*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
⏰ Date: 2019-11-30 10:10:10 +0000
---------------------------------
📄FileName: ~/AppName/AppDelegate.swift
---------------------------------
🔨Function: fetchResource(_:)
---------------------------------
♦️LineNumber: 78
---------------------------------
👨🏻‍💻 Message: Hey error Occured
---------------------------------
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

With extra information

func addItem(request: ItemRequest, completion: @escaping (Result<AppResponse<Int>, ResponseError>)->Void) {
    apiProvider.request(.addItem(request)) { (result) in
        switch result {
        case .success(let response):
            do {
            ... try ...
            } catch {
                completion(.failure(.canNotParse))
                AppLog.print(error, extraInfo: request))
            }
        case .failure(let error):
            ...
        }
    }
}

Present AppLogViewController

extension AppViewController {
    func presentLogsVC() {
        AppLogViewController.present(using: self)
    }
}

Installation:

Drag and Drop Folder to your project AppLog.

Or Individual Files:

  1. AppLogViewController.swift
  2. AppLog.swift
  3. FileHandleOutputStream.swift

About

Printing Logs in File and present in viewController.

Resources

Readme
MIT license
Activity

Stars

6 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — 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.