unidoc: github.com/unidoc/unidoc/common Index | Files

package common

import "github.com/unidoc/unidoc/common"

Package common contains common properties used by the subpackages.

Index

Package Files

logging.go time.go version.go

Constants

const Version = "1.1.0"

Holds version information, when bumping this make sure to bump the released at stamp also. This is for license information to make sure license

Variables

var ReleasedAt = time.Date(releaseYear, releaseMonth, releaseDay, releaseHour, releaseMin, 0, 0, time.UTC)

func SetLogger Uses

func SetLogger(logger Logger)

func UtcTimeFormat Uses

func UtcTimeFormat(t time.Time) string

type ConsoleLogger Uses

type ConsoleLogger struct{}

Simple Console Logger that the tests use.

func (ConsoleLogger) Debug Uses

func (this ConsoleLogger) Debug(format string, args ...interface{})

func (ConsoleLogger) Error Uses

func (this ConsoleLogger) Error(format string, args ...interface{})

func (ConsoleLogger) Info Uses

func (this ConsoleLogger) Info(format string, args ...interface{})

func (ConsoleLogger) Notice Uses

func (this ConsoleLogger) Notice(format string, args ...interface{})

func (ConsoleLogger) Warning Uses

func (this ConsoleLogger) Warning(format string, args ...interface{})

type DummyLogger Uses

type DummyLogger struct{}

Dummy Logger does nothing.

func (DummyLogger) Debug Uses

func (this DummyLogger) Debug(format string, args ...interface{})

func (DummyLogger) Error Uses

func (this DummyLogger) Error(format string, args ...interface{})

func (DummyLogger) Info Uses

func (this DummyLogger) Info(format string, args ...interface{})

func (DummyLogger) Notice Uses

func (this DummyLogger) Notice(format string, args ...interface{})

func (DummyLogger) Warning Uses

func (this DummyLogger) Warning(format string, args ...interface{})

type Logger Uses

type Logger interface {
    Error(format string, args ...interface{})
    Warning(format string, args ...interface{})
    Notice(format string, args ...interface{})
    Info(format string, args ...interface{})
    Debug(format string, args ...interface{})
}
var Log Logger = DummyLogger{}

Package common imports 2 packages (graph) and is imported by 6 packages. Updated 2017-01-05. Refresh now. Tools for package owners.