logtype

package
v1.5.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 10, 2021 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogType

type LogType int

LogType is the entry type of logging

const (
	AppRoot  LogType = 0
	APIEnter LogType = 1 << iota
	APIRequest
	MethodEnter
	MethodParameter
	MethodLogic
	NetworkCall
	NetworkRequest
	NetworkResponse
	NetworkFinish
	MethodReturn
	MethodExit
	APIResponse
	APIExit

	BasicTracing   LogType = MethodLogic
	GeneralTracing LogType = BasicTracing | APIEnter | APIExit
	VerboseTracing LogType = GeneralTracing | NetworkCall | NetworkFinish
	FullTracing    LogType = VerboseTracing | MethodEnter | MethodExit

	BasicDebugging   LogType = MethodLogic
	GeneralDebugging LogType = BasicDebugging | APIRequest | APIResponse
	VerboseDebugging LogType = GeneralDebugging | NetworkRequest | NetworkResponse
	FullDebugging    LogType = VerboseDebugging | MethodParameter | MethodReturn

	BasicLogging   LogType = BasicTracing | BasicDebugging
	GeneralLogging LogType = BasicLogging | GeneralTracing | GeneralDebugging
	VerboseLogging LogType = GeneralLogging | VerboseTracing | VerboseDebugging
	FullLogging    LogType = VerboseLogging | FullTracing | FullDebugging
)

These are the enum definitions of log types and presets

func FromString

func FromString(value string) LogType

FromString converts a string representation of LogType flag to its strongly typed instance

func (LogType) HasFlag

func (logtype LogType) HasFlag(flag LogType) bool

HasFlag checks whether this log category has the flag set or not

func (LogType) String

func (logtype LogType) String() string

FromString converts a LogType flag instance to its string representation

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL