Skip to content

Set the YARD logging level to silence warnings #6

dkubb opened this Issue Feb 19, 2013 · 0 comments

1 participant

dkubb commented Feb 19, 2013

One way to silence the warnings is to do YARD::Logger.instance.level = YARD::Logger::ERROR before YARD processes the source code. A better approach might be to explicitly provide the logger to YARD so that within the context of the parser it can use the specified logger.

Failing that, do something like:

logger   = YARD::Logger.instance
original = logger.level
  logger.level = YARD::Logger::ERROR
  # ... do stuff with YARD ...
  logger.level = original
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.