Pergunta

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.

Nenhuma solução correta

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top