Versions in this module Expand all Collapse all v1 v1.4.0 May 16, 2023 Changes in this version + const GcpSpanKey + const GcpTraceKey + const InlinePairs + const SkipThisPair + func AutoLock(l sync.Locker) func() + func ExitNotExpected(unexpected bool) + func ExitViaPanic() func(...func(*int)) + func GcpFakeResponse(status int, size int64, desc string) *http.Response + func GcpFinishSpan(span spans.Factory, resp *http.Response) time.Duration + func GcpHttpF(req *http.Request, resp *http.Response, start *time.Time) func() interface + func GcpLevelName(lev string) string + func GcpProjectID(ctx Ctx) (string, error) + func GcpReceivedRequest(pReq **http.Request) spans.Factory + func GcpReceivedResponse(span spans.Factory, req *http.Request, resp *http.Response, ...) + func GcpSendingRequest(pReq **http.Request) spans.Factory + func GcpSendingResponse(span spans.Factory, req *http.Request, resp *http.Response, ...) + func GetModuleLevels(name string) string + func GetModules() map[string]string + func GetSpanPrefix() string + func Init(levels string) + func Keys(when, lev, msg, args, ctx, mod string) + func RecoverPanicToExit(handlers ...func(*int)) + func RequestUrl(req *http.Request) *url.URL + func RunningInGcp() + func S(arg interface{}) string + func SetLevelNotation(mapper func(string) string) + func SetModuleLevels(name, levels string) bool + func SetOutput(writer io.Writer) func() + func SetPathParts(pathParts int) + func SetSpanPrefix(prefix string) + func Unless(cond bool, label string) interface + type AList = []interface + func List(args ...interface{}) AList + type AMap = *KVPairs + func ContextPairs(ctx Ctx) AMap + func Pairs(pairs ...interface{}) AMap + func (a AMap) Merge(b AMap) AMap + func (p AMap) AddPairs(pairs ...interface{}) AMap + func (p AMap) InContext(ctx Ctx) Ctx + type Ctx = context.Context + func AddPairs(ctx Ctx, pairs ...interface{}) Ctx + func GcpContextAddTrace(ctx Ctx, span spans.Factory) Ctx + func GcpContextReceivedRequest(ctx Ctx, req *http.Request) (Ctx, spans.Factory) + func GcpContextSendingRequest(req *http.Request, ctx Ctx) (Ctx, spans.Factory) + func GcpSendingNewRequest(ctx Ctx, method, url string, body io.Reader) (*http.Request, Ctx, spans.Factory, error) + type Flusher struct + Filters []func(Lager, []byte) []byte + Lager *logger + func (f Flusher) Write(buf []byte) (int, error) + type KVPairs struct + type Lager interface + CList func(args ...interface{}) + CMList func(message string, args ...interface{}) + CMMap func(message string, pairs ...interface{}) + CMap func(pairs ...interface{}) + Enabled func() bool + List func(args ...interface{}) + LogLogger func(...func(Lager, []byte) []byte) *log.Logger + MList func(message string, args ...interface{}) + MMap func(message string, pairs ...interface{}) + Map func(pairs ...interface{}) + Println func(...interface{}) + With func(ctxs ...context.Context) Lager + WithCaller func(depth int) Lager + WithStack func(minDepth, stackLen int) Lager + func Acc(cs ...Ctx) Lager + func Debug(cs ...Ctx) Lager + func Exit(cs ...Ctx) Lager + func Fail(cs ...Ctx) Lager + func GcpLogAccess(req *http.Request, resp *http.Response, pStart *time.Time) Lager + func Guts(cs ...Ctx) Lager + func Info(cs ...Ctx) Lager + func Level(lev byte, cs ...Ctx) Lager + func Note(cs ...Ctx) Lager + func Obj(cs ...Ctx) Lager + func Panic(cs ...Ctx) Lager + func Trace(cs ...Ctx) Lager + func Warn(cs ...Ctx) Lager + type Module struct + func NewModule(name string, defaultLevels ...string) *Module + func (m *Module) Acc(cs ...Ctx) Lager + func (m *Module) Debug(cs ...Ctx) Lager + func (m *Module) Exit(cs ...Ctx) Lager + func (m *Module) Fail(cs ...Ctx) Lager + func (m *Module) Guts(cs ...Ctx) Lager + func (m *Module) Info(cs ...Ctx) Lager + func (m *Module) Init(levels string) *Module + func (m *Module) Level(lev byte, cs ...Ctx) Lager + func (m *Module) Note(cs ...Ctx) Lager + func (m *Module) Obj(cs ...Ctx) Lager + func (m *Module) Panic(cs ...Ctx) Lager + func (m *Module) Trace(cs ...Ctx) Lager + func (m *Module) Warn(cs ...Ctx) Lager + type RawMap []interface + func GcpHttp(req *http.Request, resp *http.Response, start *time.Time) RawMap + func Map(pairs ...interface{}) RawMap + type Stringer interface + String func() string