Swiftpack.co - immobiliare/Glider-ELK as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by immobiliare.
immobiliare/Glider-ELK 2.0.0
A logging transport for Glider that sends logging messages to Logstash (eg. the ELK stack)
⭐️ 5
🕓 1 year ago
iOS macOS tvOS
.package(url: "https://github.com/immobiliare/Glider-ELK.git", from: "2.0.0")

logo-library

Swift Platform Swift Package Manager

Glider

Glider is the logger for just about everything!

It's designed to be:

  • SIMPLE: with a modular & extensible architecture, fully documented
  • PERFORMANT: you can use Glider without the worry of impacting your app performances
  • UNIVERSAL: it supports 14+ transports to satisfy every need; you can create your transport too!

See the project's page on GitHub for more informations.

Glider-ELK

Glider-ELK is a logging trasnport for Glider Logging Framework.

The log entries are properly formatted, cached, and then uploaded via HTTP/HTTPS to elastic/logstash, which allows for further processing in its pipeline. The logs can then be stored in elastic/elasticsearch and visualized in elastic/kibana.

  • Uploads the log data automatically to Logstash (e.g. the ELK stack)
  • Caches the created log entries and sends them via HTTP either periodically or when exceeding a certain configurable memory threshold to Logstash
  • Converts the logging metadata to a JSON representation, which allows querying after those values (e.g. filter after a specific parameter in Kibana)
  • Logs itself via a background activity logger (including protection against a possible infinite recursion)
let elkTransport = try GliderELKTransport(hostname: "127.0.0.1", port: 5000, delegate: self) {
    $0.uploadInterval = TimeAmount.seconds(10)
}
        
let logger = Log {
    $0.subsystem = "com.myapp"
    $0.category = "network"
    $0.level = .info
    $0.transports = [elkTransport]
}

Install

This package require the Core Library of Glider you can found here.
Package is distributed both as CocoaPods dependency and SPM dependency.

Swift Package Manager

The Swift Package Manager is a tool for automating the distribution of Swift code and is integrated into the swift compiler. It is in early development, but Glider does support its use on supported platforms.

Once you have your Swift package set up, adding Glider as a dependency is as easy as adding it to the dependencies value of your Package.swift.

dependencies: [
    .package(url: "https://github.com/immobiliare/Glider-ELK.git")
]

CocoaPods

CocoaPods is a dependency manager for Cocoa projects.
To integrate Glider into your project, specify it in your Podfile:

source 'https://github.com/CocoaPods/Specs.git'
use_frameworks!

pod 'GliderELK'

Requirements

Minimum requirements are:

  • Swift 5.4
  • iOS 13+, macOS 10.15+

Support & Contribute

Made with ❤️ by ImmobiliareLabs & Contributors

We'd love for you to contribute to Glider!
If you have questions on using Glider, bugs, and enhancement, please feel free to reach out by opening a GitHub Issue.

Indomio

GitHub

link
Stars: 5
Last commit: 1 year ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Release Notes

2.0.0
1 year ago

Released on 2022-12-16

  • Moved from main repository

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics