bunyan_shared v0.1.0 Bunyan.Shared.Options

Link to this section Summary

Functions

If key is present in options, add it to config under internal_key

Like maybe_add/3, but convert the level from an atom to a number

Validate that a list of options only contains valid keys

Validate that a list of options contains required keys

Link to this section Functions

Link to this function maybe_add(config, options, key, internal_key \\ nil)
maybe_add(struct(), keyword(), atom(), atom()) :: struct()

If key is present in options, add it to config under internal_key

Link to this function maybe_add_level(config, options, key, internal_key \\ nil)
maybe_add_level(struct(), keyword(), atom(), atom()) :: struct()

Like maybe_add/3, but convert the level from an atom to a number

Link to this function validate_required_options(options, required_keys, from_module)

Validate that a list of options contains required keys