GithubHelp home page GithubHelp logo

austrianapps / swift-graylog Goto Github PK

View Code? Open in Web Editor NEW

This project forked from iadvize/swift-graylog

0.0 0.0 0.0 29.73 MB

Graylog library written in Swift.

License: MIT License

Ruby 2.63% Objective-C 1.35% Swift 96.02%

swift-graylog's Introduction

CircleCI

SwiftGraylog

Graylog library written in Swift.

Compatibility

Version Minimum iOS Version Swift Version
1.1.0, 1.1.1 iOS 8.0 Swift 5
1.0.0 iOS 8.0 Swift 4

Documentation

First you have to define your Graylog server URL:

if let url = URL(string: "https://yourgraylog.com/gelf") {
    Graylog.setURL(url)
}

Then you can send log to Graylog using the log method by passing a dictionary which represents your JSON payload:

Graylog.log(["message": "Hello Graylog!"])

Here is a list of available fields in Graylog: Graylog Documentation

If an issue is thrown while sending a log, a message will be printed in the Xcode console. The framework stores logs locally in the user preferences and retry the failed one each 60 seconds.

Installation

Cocoapods

Add the dependency to your Podfile:

pod 'SwiftGraylog'

and use import SwiftGraylog where you want to use it.

Contribute

Look at contribution guidelines here: CONTRIBUTING.md

Once you've forked the repository you should pod install at the root of the repository and open the SwiftGraylog.xcworkspace workspace.

N.B. You have access to template files for Pull Requests and Issues opening:

swift-graylog's People

Contributors

alexandrekarst avatar simonliotier avatar ycoupe 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.