Skip to content

llllllex/DevHelper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

DevHelper

A Helper for developing need. e.g. output console log for a better view.

Log

Output informations for developers to get to know about parameters' value.

Usage

Attributes

  • filename: String This is a attribute where you use this functions to show you where the informations from.
  • infoDic: [ String: Any ] This is a attribute for informations you want to output to console.
  • needTime: Bool = false This is a attribute to choose whether you need to show timestamp under every filename.

e.g.

DevHelper.log(
    filename: "AAATableViewController", 
    infoDic: [
        "Core Data Status": context?.description ?? "nil", 
        "Time": Date()
    ],
    needTime: true
)
DevHelper.log(
    filename: "AAATableViewController", 
    infoDic: [
        "Core Data Status": context?.description ?? "nil", 
        "Time": Date()
    ]
)

About

A Helper for developing need. e.g. output console log for a better view.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages