gitlab.com/evatix-go/core@v1.3.55/coreinterface/loggerinf/SingleLogger.go (about) 1 package loggerinf 2 3 import ( 4 "fmt" 5 6 "gitlab.com/evatix-go/core/coredata/corejson" 7 "gitlab.com/evatix-go/core/coreinterface/entityinf" 8 "gitlab.com/evatix-go/core/coreinterface/enuminf" 9 "gitlab.com/evatix-go/core/coreinterface/errcoreinf" 10 "gitlab.com/evatix-go/core/coreinterface/serializerinf" 11 ) 12 13 type SingleLogger interface { 14 enuminf.LoggerTyperGetter 15 16 IsSilent() bool 17 18 Stack() MetaAttributesStacker 19 StackTitle(title string) MetaAttributesStacker 20 21 On(isLog bool) SingleLogger 22 StackSkip(stackSkipIndex int) SingleLogger 23 OnString(input, expected string) SingleLogger 24 25 Title(message string) SingleLogger 26 Msg(message string) SingleLogger 27 TitleAttr(message, attr string) SingleLogger 28 Log(message string) SingleLogger 29 LogAttr(message, attr string) SingleLogger 30 Str(title, val string) SingleLogger 31 Strings(title string, values []string) SingleLogger 32 StringsSpread(title string, values ...string) SingleLogger 33 Stringer(title string, stringer fmt.Stringer) SingleLogger 34 Stringers(title string, stringers ...fmt.Stringer) SingleLogger 35 Byte(title string, val byte) SingleLogger 36 Bytes(title string, values []byte) SingleLogger 37 Hex(title string, val []byte) SingleLogger 38 RawJson(title string, rawJson []byte) SingleLogger 39 Err(err error) SingleLogger 40 AnErr(title string, err error) SingleLogger 41 42 SimpleBytesResulter( 43 title string, 44 result serializerinf.SimpleBytesResulter, 45 ) MetaAttributesStacker 46 47 BaseJsonResulter( 48 title string, 49 result serializerinf.BaseJsonResulter, 50 ) MetaAttributesStacker 51 52 BasicJsonResulter( 53 title string, 54 result serializerinf.BasicJsonResulter, 55 ) MetaAttributesStacker 56 JsonResulter( 57 title string, 58 result serializerinf.JsonResulter, 59 ) MetaAttributesStacker 60 61 ErrWithType(title string, errType errcoreinf.BasicErrorTyper, err error) SingleLogger 62 Meta(title string, metaAttr MetaAttributesCompiler) SingleLogger 63 64 MapBool(title string, mapInt map[string]bool) SingleLogger 65 MapInt(title string, mapInt map[string]int) SingleLogger 66 MapAnyAny(title string, mapAny map[interface{}]interface{}) SingleLogger 67 MapAny(title string, mapAny map[string]interface{}) SingleLogger 68 MapIntAny(title string, mapAny map[int]interface{}) SingleLogger 69 MapIntString(title string, mapAny map[int]string) SingleLogger 70 MapJsonResult(title string, mapAny map[string]corejson.Result) SingleLogger 71 72 DefaultStackTraces() SingleLogger 73 ErrWithTypeTraces(title string, errType errcoreinf.BasicErrorTyper, err error) SingleLogger 74 ErrorsWithTypeTraces(title string, errType errcoreinf.BasicErrorTyper, errorItems ...error) SingleLogger 75 StackTraces(stackSkipIndex int, title string) SingleLogger 76 OnErrStackTraces(err error) SingleLogger 77 OnErrWrapperOrCollectionStackTraces(errWrapperOrCollection errcoreinf.BaseErrorOrCollectionWrapper) SingleLogger 78 79 FullStringer( 80 fullStringer errcoreinf.FullStringer, 81 ) SingleLogger 82 83 FullStringerTitle( 84 title string, 85 fullStringer errcoreinf.FullStringer, 86 ) SingleLogger 87 FullTraceAsAttr( 88 title string, 89 attrFullStringWithTraces errcoreinf.FullStringWithTracesGetter, 90 ) SingleLogger 91 92 BasicErrWrapper(basicErrWrapper errcoreinf.BasicErrWrapper) SingleLogger 93 BaseRawErrCollectionDefiner(rawErrCollection errcoreinf.BaseRawErrCollectionDefiner) SingleLogger 94 BaseErrorWrapperCollectionDefiner(errWrapperCollection errcoreinf.BaseErrorWrapperCollectionDefiner) SingleLogger 95 ErrWrapperOrCollection(errWrapperOrCollection errcoreinf.BaseErrorOrCollectionWrapper) SingleLogger 96 RawErrCollection(title string, err errcoreinf.BaseRawErrCollectionDefiner) SingleLogger 97 CompiledBasicErrWrapper(compiler errcoreinf.CompiledBasicErrWrapper) SingleLogger 98 99 Namer(title string, namer enuminf.Namer) SingleLogger 100 Enum(title string, enum enuminf.BasicEnumer) SingleLogger 101 Enums(title string, enums ...enuminf.BasicEnumer) SingleLogger 102 103 OnlyNamer(namer enuminf.Namer) SingleLogger 104 OnlyEnum(enum enuminf.BasicEnumer) SingleLogger 105 OnlyEnums(enums ...enuminf.BasicEnumer) SingleLogger 106 OnlyError(err error) SingleLogger 107 OnlyString(value string) SingleLogger 108 OnlyStrings(values ...string) SingleLogger 109 OnlyMetaAttr(metaAttr MetaAttributesCompiler) SingleLogger 110 111 OnlyStringer(stringer fmt.Stringer) SingleLogger 112 OnlyStringers(stringers ...fmt.Stringer) SingleLogger 113 114 OnlyIntegers(values ...int) SingleLogger 115 OnlyBooleans(values ...bool) SingleLogger 116 OnlyBytes(rawBytes []byte) SingleLogger 117 OnlyRawJson(rawBytes []byte) SingleLogger 118 OnlyBytesErr(rawBytes []byte, err error) SingleLogger 119 120 OnlyAny(anyItem interface{}) SingleLogger 121 OnlyAnyItems(values ...interface{}) SingleLogger 122 OnlyAnyIf(isLog bool, anyItem interface{}) SingleLogger 123 OnlyAnyItemsIf(isLog bool, anyItems ...interface{}) SingleLogger 124 125 Bool(title string, isResult bool) SingleLogger 126 Booleans(title string, isResults ...bool) SingleLogger 127 128 OnlyMapBool(mapInt map[string]bool) SingleLogger 129 OnlyMapInt(mapInt map[string]int) SingleLogger 130 OnlyMapAny(mapAny map[string]interface{}) SingleLogger 131 OnlyMapAnyAny(mapAny map[interface{}]interface{}) SingleLogger 132 OnlyMapIntAny(mapAny map[int]interface{}) SingleLogger 133 OnlyMapIntString(mapAny map[int]string) SingleLogger 134 OnlyMapJsonResult(mapAny map[string]corejson.Result) SingleLogger 135 136 OnlySimpleBytesResulter( 137 result serializerinf.SimpleBytesResulter, 138 ) SingleLogger 139 140 OnlyBaseJsonResulter( 141 result serializerinf.BaseJsonResulter, 142 ) SingleLogger 143 144 OnlyBasicJsonResulter( 145 result serializerinf.BasicJsonResulter, 146 ) SingleLogger 147 OnlyJsonResulter( 148 result serializerinf.JsonResulter, 149 ) SingleLogger 150 151 AnyJsonLog(anyItem interface{}) SingleLogger 152 Any(anyItem interface{}) SingleLogger 153 AnyIf(isLog bool, anyItem interface{}) SingleLogger 154 AnyItems(anyItems ...interface{}) SingleLogger 155 AnyItemsIf(isLog bool, anyItems ...interface{}) SingleLogger 156 157 OnlyJson(json *corejson.Result) SingleLogger 158 OnlyJsons(jsons ...*corejson.Result) SingleLogger 159 160 Jsoner(title string, jsoner corejson.Jsoner) SingleLogger 161 Jsoners(jsoners ...corejson.Jsoner) SingleLogger 162 OnlyJsoner(jsoner corejson.Jsoner) SingleLogger 163 164 Serializer(serializer Serializer) SingleLogger 165 Serializers(serializers ...Serializer) SingleLogger 166 SerializerFunc(serializerFunc func() ([]byte, error)) SingleLogger 167 SerializerFunctions(serializerFunctions ...func() ([]byte, error)) SingleLogger 168 169 StandardTaskEntityDefiner(entity entityinf.StandardTaskEntityDefiner) SingleLogger 170 TaskEntityDefiner(entity entityinf.TaskEntityDefiner) SingleLogger 171 172 StandardTaskEntityDefinerTitle(title string, entity entityinf.StandardTaskEntityDefiner) SingleLogger 173 TaskEntityDefinerTitle(title string, entity entityinf.TaskEntityDefiner) SingleLogger 174 175 LogModel(model SingleLogModeler) SingleLogger 176 LogModelTitle(title string, model SingleLogModeler) SingleLogger 177 178 Int(title string, i int) SingleLogger 179 Integers(title string, integerItems ...int) SingleLogger 180 181 FmtIf(isLog bool, format string, v ...interface{}) SingleLogger 182 Fmt(format string, v ...interface{}) SingleLogger 183 AttrFmt(title string, attrFormat string, attrValues ...interface{}) SingleLogger 184 185 RawPayloadsGetter(payloadsGetter RawPayloadsGetter) SingleLogger 186 RawPayloadsGetterTitle(title string, payloadsGetter RawPayloadsGetter) SingleLogger 187 188 Logger() StandardLogger 189 }