github.com/crewjam/saml@v0.4.14/logger/logger.go (about)

     1  // Package logger provides a logging interface.
     2  package logger
     3  
     4  import (
     5  	"log"
     6  	"os"
     7  )
     8  
     9  // Interface provides the minimal logging interface
    10  type Interface interface {
    11  	// Printf prints to the logger using the format.
    12  	Printf(format string, v ...interface{})
    13  	// Print prints to the logger.
    14  	Print(v ...interface{})
    15  	// Println prints new line.
    16  	Println(v ...interface{})
    17  	// Fatal is equivalent to Print() followed by a call to os.Exit(1).
    18  	Fatal(v ...interface{})
    19  	// Fatalf is equivalent to Printf() followed by a call to os.Exit(1).
    20  	Fatalf(format string, v ...interface{})
    21  	// Fatalln is equivalent to Println() followed by a call to os.Exit(1).
    22  	Fatalln(v ...interface{})
    23  	// Panic is equivalent to Print() followed by a call to panic().
    24  	Panic(v ...interface{})
    25  	// Panicf is equivalent to Printf() followed by a call to panic().
    26  	Panicf(format string, v ...interface{})
    27  	// Panicln is equivalent to Println() followed by a call to panic().
    28  	Panicln(v ...interface{})
    29  }
    30  
    31  // DefaultLogger logs messages to os.Stdout
    32  var DefaultLogger = log.New(os.Stdout, "", log.LstdFlags)