• Miek Gieben's avatar
    pkg/log: ability for debug logs (#1689) · b4b65fbc
    Miek Gieben authored
    * pkg/log: ability for debug logs
    
    When the debug plugin is enabled all log.Debug calls will print to
    standard; if not there are a noop (almost).
    
    The log package wraps some standard log functions as well, so just
    replacing "log" with "plugin/pkg/log" should be enough to use this
    package.
    
    * docs
    
    * Add docs
    
    * lint
    
    * Test fallthrough to log pkg as well
    
    * simple package - up test coverage
    
    * add other log levels as well
    
    * update docs
    b4b65fbc
log_test.go 1.24 KB