Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

git.sr.ht/~rumpelsepp/rlog

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

git.sr.ht/~rumpelsepp/rlog

  • v0.0.0-20191119152513-6f7f3bf18e94
  • Go
  • Socket score

Version published
Created
Source

rlog

GoDoc

Package rlog provides a reimplementation of the log package in the standard library. This package provides simple logging with loglevels and an interface quite similar to the standard library. Supported loglevels are equivalent to the syslog standard, RFC5424.

Quickstart

package main

import "git.sr.ht/~rumpelsepp/rlog"

func main() {
    rlog.SetLogLevel(log.DEBUG)
    rlog.Debugln("debug message")
    rlog.Infoln("info message")
    rlog.Noticeln("info message")
    rlog.Warnln("warn message")
    rlog.Errln("error message")
    rlog.Critln("critical message, which exits the application")
}

FAQs

Package last updated on 19 Nov 2019

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