doc.go 552 B

1234567891011121314151617181920
  1. // Package log supplies more advanced features than go orign log package.
  2. //
  3. // It supports log different level: trace, debug, info, warn, error, fatal.
  4. //
  5. // It also supports different log handlers which you can log to stdout, file, socket, etc...
  6. //
  7. // Use
  8. //
  9. // import "github.com/siddontang/go-log/log"
  10. //
  11. // //log with different level
  12. // log.Info("hello world")
  13. // log.Error("hello world")
  14. //
  15. // //create a logger with specified handler
  16. // h := NewStreamHandler(os.Stdout)
  17. // l := log.NewDefault(h)
  18. // l.Info("hello world")
  19. //
  20. package log