Swiftpack.co - Package - SwiftMN/SumoLogHandler

SumoLogHandler

PROJECT MOVED TO GITLAB

https://gitlab.com/onetapaway-opensource/swift/sumologhandler

Github

link
Stars: 0

Dependencies

Used By

Total: 0

Releases

SumoLogHandler 2.0.1 - 2020-04-01 17:22:09

Separates fileName and lineNumber

Before

{
  "file": "MyFileName:34",
  ...
}

After

{
  "fileName": "MyFileName",
  "lineNumber": "34"
  ...
}

SumoLogHandler 2.0.0 - 2020-04-01 14:36:13

Added

  • machine
  • systemName
  • systemVersion

Changed

  • init signature changed to more accurately reflect names of things in Sumo
    • sumoName -> sourceName
    • sumoCategory -> sourceCategory

Removed

  • thread since it never actually worked.

Example

Logs in Sumo look like this:

{
  "file": "MyClassName:62",
  "function": "myFunctionName(someVariable:)",
  "logLevel": "info",
  "machine": "iPad7,12",
  "message": "This is a log message",
  "systemName": "iOS",
  "systemVersion": "13.4",
  "timestamp": "2020-04-01T07:58:30.506-0500"
}

SumoLogHandler 1.0.0 - 2020-02-10 18:51:12

The first version of SumoLogHandler