Socket
Book a DemoInstallSign in
Socket

ruby_for_grafana_loki

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ruby_for_grafana_loki

bundlerRubygems
Version
0.0.6
Version published
Maintainers
1
Created
Source

Usage in your gem or application

 
 - add gem "ruby_for_grafana_loki-0.0.5.gem"                      //to the Gemfile
 - bundle install
 
 in the project:
 - logs_type = %w(ERROR WARN FATAL)                               // Use custom logs type: ERROR, WARN, FATAL, INFO, DEBUG 
 - log_file_path = "log/#{Rails.env}.log"
 - client = RubyForGrafanaLoki.client(log_file_path, logs_type)
 - client.jobName = "job name"                                    // your job name
 - client.hostName = "host name"                                  // your host name
 - client.sourceName = "source name"                              // your source name
 - client.send_all_logs
 - client.send_log("This is a test log message.")

FAQs

Package last updated on 09 Dec 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts