Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 8b4704049a

Fetching latest commit…

Cannot retrieve the latest commit at this time

README.md

Steno

Steno is a lightweight, modular logging library written specifically to support Cloud Foundry.

Concepts

Steno is composed of three main classes: loggers, sinks, and formatters. Loggers are the main entry point for Steno. They consume user input, create structured records, and forward said records to the configured sinks. Sinks are the ultimate destination for log records. They transform a structured record into a string via a formatter and then typically write the transformed string to another transport.

Getting started

config = Steno::Config.new(
  :sinks   => [Steno::Sink::IO.new(STDOUT)],
  :codec   => Steno::Codec::Json.new,
  :context => Steno::Context::ThreadLocal.new)

Steno.init(config)

logger = Steno.logger("test")

logger.info("Hello world!")
Something went wrong with that request. Please try again.