logger
Morgan-inspired logging middleware for the Iron web framework.
Example
extern crate iron;
use Ipv4Addr;
use ;
Overview
Logger is a part of Iron's core bundle.
- Logger prints request and response information to the terminal, using either a default format or a custom format string.
- Format strings can specify fields to be logged as well as ANSI terminal colors and attributes.
Installation
If you're using a Cargo.toml
to manage dependencies, just add logger to the toml:
[]
= "https://github.com/iron/logger.git"
Otherwise, cargo build
, and the rlib will be in your target
directory.
Documentation
Along with the online documentation,
you can build a local copy with make doc
.
Examples
Get Help
One of us (@reem, @zzmp,
@theptrk, @mcreinhard)
is usually on #iron
on the mozilla irc. Come say hi and ask any questions you might have.
We are also usually on #rust
and #rust-webdev
.