New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
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

  • 0.0.6
  • Rubygems
  • Socket score

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc