NAME

eris::log::context::static - Add static keys/values to every message

VERSION

version 0.006

SYNOPSIS

This context exists to statically add key/value pairs to every message.

ATTRIBUTES

field

Set to *

matcher

Set to *

This combo causes this to match every message.

fields

A HashRef of keys/values to add to every message. To configure:

---
contexts:
  config:
    static:
      fields:
        dc: DCA1
        env: prod

METHODS

contextualize_message

If configured, this context just takes the fields specified in it's config and adds those fields to every message.

SEE ALSO

eris::log::contextualizer, eris::role::context

AUTHOR

Brad Lhotsky <brad@divisionbyzero.net>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2015 by Brad Lhotsky.

This is free software, licensed under:

The (three-clause) BSD License