metasploit-framework

https://github.com/rapid7/metasploit-framework

Ruby

Metasploit Framework

Net::DNS::Resolver#log_level=

Set the log level for the built-in logging facility.

The log level can be one of the following:

- +Net::DNS::DEBUG+
- +Net::DNS::INFO+
- +Net::DNS::WARN+
- +Net::DNS::ERROR+
- +Net::DNS::FATAL+

Note that if the global variable $DEBUG is set (like when the
-d switch is used at the command line) the logger level is
automatically set at DEGUB.

For further informations, see Logger documentation in the
Ruby standard library.

Source | Google | Stack overflow

Edit

git clone [email protected]:rapid7/metasploit-framework.git

cd metasploit-framework

open lib/net/dns/resolver.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Net--DNS--Resolver-log_level--for-pr


# Commit to git

git add lib/net/dns/resolver.rbgit commit -m "better docs for Net::DNS::Resolver#log_level="


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Net--DNS--Resolver-log_level--for-pr

hub pull-request


# Celebrate!