File: doc.go

package info (click to toggle)
golang-github-tideland-golib 4.24.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,144 kB
  • sloc: makefile: 4
file content (28 lines) | stat: -rw-r--r-- 1,182 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// Tideland Go Library - Logger
//
// Copyright (C) 2012-2017 Frank Mueller / Tideland / Oldenburg / Germany
//
// All rights reserved. Use of this source code is governed
// by the new BSD license.

// Package logger of the Tideland Go Library provides a flexible way
// to log information with different levels and on different backends.
//
// The levels are Debug, Info, Warning, Error, Critical, and Fatal.
// Here logger.Debugf() also logs information about file name, function
// name, and line number while logger.Fatalf() may end the program
// depending on the set FatalExiterFunc.
//
// Different backends may be set. The standard logger writes to an
// io.Writer (initially os.Stdout), the go logger uses the Go log
// package, and the sys logger uses the Go syslog package on the
// according operating systems. For testing the test logger exists.
// When created also a fetch function is return. It returns the
// logged strings which can be used inside of tests then.
//
// Changes to the standard behavior can be made with logger.SetLevel(),
// logger.SetLogger(), and logger.SetFatalExiter(). Own logger
// backends and exiter can be defined.
package logger

// EOF