negroni-logrus - logrus middleware for negroni

  •        59

Take a peek at the basic example or the custom example, the latter of which includes setting a custom log level on the logger with NewCustomMiddleware. If you want to reuse an already initialized logrus.Logger, you should be using NewMiddlewareFromLogger (see existinglogrus).

https://github.com/meatballhat/negroni-logrus

Tags
Implementation
License
Platform

   




Related Projects

Negroni - Idiomatic HTTP Middleware for Golang

  •    Go

Negroni is an idiomatic approach to web middleware in Go. It is tiny, non-intrusive, and encourages use of net/http Handlers. If you like the idea of Martini, but you think it contains too much magic, then Negroni is a great fit. Negroni is not a framework. It is a middleware-focused library that is designed to work directly with net/http.

Logrus - Structured, pluggable logging for Go.

  •    Go

Logrus is a structured logger for Go (golang), completely API compatible with the standard library logger. There is a support to add hooks for logging levels. For example to send errors to an exception tracking service on Error, Fatal and Panic, info to StatsD or log to multiple places simultaneously, e.g. syslog.

log - Structured logging package for Go.

  •    Go

Package log implements a simple structured logging API inspired by Logrus, designed with centralization in mind. Read more on Medium.

csrf - gorilla/csrf provides Cross Site Request Forgery (CSRF) prevention middleware for Go web applications & services

  •    Go

gorilla/csrf is also compatible with middleware 'helper' libraries like Alice and Negroni....and then collect the token with csrf.Token(r) in your handlers before passing it to the template, JSON body or HTTP header (see below).

heketi - RESTful based volume management framework for GlusterFS

  •    Go

Heketi provides a RESTful management interface which can be used to manage the life cycle of GlusterFS volumes. With Heketi, cloud services like OpenStack Manila, Kubernetes, and OpenShift can dynamically provision GlusterFS volumes with any of the supported durability types. Heketi will automatically determine the location for bricks across the cluster, making sure to place bricks and its replicas across different failure domains. Heketi also supports any number of GlusterFS clusters, allowing cloud services to provide network file storage without being limited to a single GlusterFS cluster. When a request is received to create a volume, Heketi will first allocate the appropriate storage in a cluster, making sure to place brick replicas across failure domains. It will then format, then mount the storage to create bricks for the volume requested. Once all bricks have been automatically created, Heketi will finally satisfy the request by creating, then starting the newly created GlusterFS volume.


logxi - A 12-factor app logger built for performance and happy development

  •    Go

log XI is a structured 12-factor app logger built for speed and happy development.A logger should be efficient and minimize performance tax. logxi encodes JSON 2X faster than logrus and log15 with primitive types. When diagnosing a problem in production, troubleshooting often means enabling small trace data in Debug and Info statements for some period of time.

Algernon - Pure Go web server with built-in Lua, Markdown, HyperApp and Pongo2 support

  •    Go

Web server with built-in support for HTTP/2, Lua, Markdown, Pongo2, HyperApp, Amber, Sass(SCSS), GCSS, JSX, BoltDB, Redis, PostgreSQL, MariaDB/MySQL, rate limiting, graceful shutdown, plugins, users and permissions. Uses no external libraries, only pure Go.

logging - A flexible logging library for use in Ruby programs based on the design of Java's log4j library

  •    Ruby

Logging is a flexible logging library for use in Ruby programs based on the design of Java's log4j library. It features a hierarchical logging system, custom level names, multiple output destinations per log event, custom formatting, and more. This example configures a logger to output messages in a format similar to the core ruby Logger class. Only log messages that are warnings or higher will be logged.

slog - Structured, contextual, extensible, composable logging for Rust

  •    Rust

slog is an ecosystem of reusable components for structured, extensible, composable and contextual logging for Rust. The ambition is to be The Logging Library for Rust. slog should accommodate a variety of logging features and requirements. If there is a feature that you need and standard log crate is missing, slog should have it.

scala-logging - Convenient and performant logging library for Scala wrapping SLF4J.

  •    Scala

Scala Logging is a convenient and performant logging library wrapping SLF4J.If you are looking for a version compatible with Scala 2.10, check out Scala Logging 2.x.

serilog - Simple .NET logging with fully-structured events

  •    CSharp

Serilog is a diagnostic logging library for .NET applications. It is easy to set up, has a clean API, and runs on all recent .NET platforms. While it's useful even in the simplest applications, Serilog's support for structured logging shines when instrumenting complex, distributed, and asynchronous applications and systems.Like many other libraries for .NET, Serilog provides diagnostic logging to files, the console, and many other outputs.

scala-logging - Convenient and performant logging library for Scala wrapping SLF4J.

  •    Scala

Scala Logging is a convenient and fast logging library wrapping SLF4J. If you are looking for a version compatible with Scala 2.10, check out Scala Logging 2.x.

LibLog - LibLog is a single file for you to either copy/paste or install via nuget, into your library/framework/application to provide a logging abstraction

  •    CSharp

Designed specifically for library developers, LibLog is a single file for you to either copy/paste or install via nuget, into your library/framework/application to provide a logging abstraction. It also contains transparent built-in support for NLog, Log4Net, EntLib Logging, Serilog and Loupe, and allows your users to define a custom provider if necessary. Please see Wiki for more information.

zap - Blazing fast, structured, leveled logging in Go.

  •    Go

Blazing fast, structured, leveled logging in Go.Note that zap only supports the two most recent minor versions of Go.

Pantheios - The C/C++ Logging Sweetspot

  •    C

A C++ diagnostic logging API that is simple to use, 100% type-safe, generic, infinitely-extensible, atomic, platform-independent, and extremely efficient. And, best of all, it upholds the spirit of C: you only pay for what you use. Pantheios is readily extended to use the existing transport mechanisms of feature-rich diagnostic logging libraries such as ACE, log4cpp, log4cplus, log4cxx.

log - Logging implementation for Rust

  •    Rust

A Rust library providing a lightweight logging facade. A logging facade provides a single logging API that abstracts over the actual logging implementation. Libraries can use the logging API provided by this crate, and the consumer of those libraries can choose the logging implementation that is most suitable for its use case.

kotlin-logging - Lightweight logging framework for Kotlin

  •    Kotlin

Lightweight logging framework for Kotlin, written in . A convenient and performant logging library wrapping slf4j with Kotlin extensions. An Android example project with kotlin logging can be found in kotlin-logging-example-android.

log15 - Structured, composable logging for Go

  •    Go

Package log15 provides an opinionated, simple toolkit for best-practice logging in Go (golang) that is both human and machine readable. It is modeled after the Go standard library's io and net/http packages and is an alternative to the standard library's log package.The API of the master branch of log15 should always be considered unstable. If you want to rely on a stable API, you must vendor the library.

seelog - Seelog is a native Go logging library that provides flexible asynchronous dispatching, filtering, and formatting

  •    Go

Seelog is a powerful and easy-to-learn logging framework that provides functionality for flexible dispatching, filtering, and formatting log messages. It is natively written in the Go programming language.

zlog - A reliable, high-performance, thread safe, flexsible, clear-model, pure C logging library.

  •    C

zlog is a reliable, high-performance, thread safe, flexible, clear-model, pure C logging library. Actually, in the C world there was NO good logging library for applications like logback in java or log4cxx in c++. Using printf can work, but can not be redirected or reformatted easily. syslog is slow and is designed for system use. So I wrote zlog. It is faster, safer and more powerful than log4c. So it can be widely used.