...

Source file src/github.com/go-openapi/runtime/logger/standard.go

Documentation: github.com/go-openapi/runtime/logger

     1  package logger
     2  
     3  import (
     4  	"fmt"
     5  	"os"
     6  )
     7  
     8  var _ Logger = StandardLogger{}
     9  
    10  type StandardLogger struct{}
    11  
    12  func (StandardLogger) Printf(format string, args ...interface{}) {
    13  	if len(format) == 0 || format[len(format)-1] != '\n' {
    14  		format += "\n"
    15  	}
    16  	fmt.Fprintf(os.Stderr, format, args...)
    17  }
    18  
    19  func (StandardLogger) Debugf(format string, args ...interface{}) {
    20  	if len(format) == 0 || format[len(format)-1] != '\n' {
    21  		format += "\n"
    22  	}
    23  	fmt.Fprintf(os.Stderr, format, args...)
    24  }
    25  

View as plain text