🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
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
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