Git Product home page Git Product logo

sslog's Introduction

header

Version

Example

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

Requirements

Installation

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

pod 'SSLog'

How to use

type

SSLog has a total of 5 types to make it easier to distinguish between logs.

  • error : "📕Error"
  • warning : "📙Warning"
  • action : "📗Action"
  • success : "📘Success"
  • cancelled : "📓Cancelled"

These types can be used to classify logs according to their intended use and search Xocode for easy and easy to find.

    SSLog.simple(.success, "this Log is SSLog.type success.\n")

method

SSLog provides three methods for easy and easy logging.

  • simple

    This is the simplest method for log output that represents only one of the five log types introduced above and the message to be outputted.

      SSLog.simple(.success, "this Log is SSLog.simple method.\n")
    
  • basic

    In addition to the log type and messages, the name, method name, line, and so on of the file to which the method was called is added.

      SSLog.basic(.action, "this Log is SSLog.basic method.\n")
    
  • detail

    detail has Date, fileUrl, fileName, function, line, A method that helps dsohandle output the most detailed log.

      SSLog.detail(.warning, "this Log is SSLog.detail method.\n")
    

Author

48409434, [email protected]

License

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

sslog's People

Contributors

dortus47 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.