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.

没有正确的解决方案

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top