Question

If I'm setting up configuration for my ruby application logging using configatron, does anyone know how to:

1. Do Enum values, e.g. configatron.log.level = 'DEBUG' where other acceptable values such as ERROR, WARN, INFO. are forced and other values other than these are rejected?

2. Do multiple values e.g. configatron.log.logto = [:file, :udp, :stdout] I'd like these values to be also enforceable.

Any clues appreciated.

No correct solution

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top