gitlab.com/evatix-go/core@v1.3.55/coreinterface/loggerinf/MetaAttributesStacker.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" 8 "gitlab.com/evatix-go/core/coreinterface/entityinf" 9 "gitlab.com/evatix-go/core/coreinterface/enuminf" 10 "gitlab.com/evatix-go/core/coreinterface/errcoreinf" 11 "gitlab.com/evatix-go/core/coreinterface/serializerinf" 12 ) 13 14 type MetaAttributesStacker interface { 15 enuminf.LoggerTyperGetter 16 17 On(isLog bool) MetaAttributesStacker 18 19 IsSilent() bool 20 21 Msg(message string) MetaAttributesStacker 22 Title(title string) MetaAttributesStacker 23 TitleAttr(title, attr string) MetaAttributesStacker 24 Str(title, val string) MetaAttributesStacker 25 Strings(title string, stringItems ...string) MetaAttributesStacker 26 StandardSlicer(title string, standardSlice coreinterface.StandardSlicer) MetaAttributesStacker 27 Stringer(title string, stringer fmt.Stringer) MetaAttributesStacker 28 Stringers(title string, stringers ...fmt.Stringer) MetaAttributesStacker 29 Byte(title string, singleByteValue byte) MetaAttributesStacker 30 Bytes(title string, values []byte) MetaAttributesStacker 31 Hex(title string, hexValues []byte) MetaAttributesStacker 32 RawJson(title string, rawJsonBytes []byte) MetaAttributesStacker 33 Error(title string, err error) MetaAttributesStacker 34 AnErr(key string, err error) MetaAttributesStacker 35 36 SimpleBytesResulter( 37 title string, 38 result serializerinf.SimpleBytesResulter, 39 ) MetaAttributesStacker 40 41 BaseJsonResulter( 42 title string, 43 result serializerinf.BaseJsonResulter, 44 ) MetaAttributesStacker 45 46 BasicJsonResulter( 47 title string, 48 result serializerinf.BasicJsonResulter, 49 ) MetaAttributesStacker 50 JsonResulter( 51 title string, 52 result serializerinf.JsonResulter, 53 ) MetaAttributesStacker 54 55 MapIntegerAny(title string, mapAny map[int]interface{}) MetaAttributesStacker 56 Meta(title string, metaAttr MetaAttributesCompiler) MetaAttributesStacker 57 58 MapBool(title string, mapInt map[string]bool) MetaAttributesStacker 59 MapInt(title string, mapInt map[string]int) MetaAttributesStacker 60 MapAnyAny(title string, mapAny map[interface{}]interface{}) MetaAttributesStacker 61 MapAny(title string, mapAny map[string]interface{}) MetaAttributesStacker 62 MapIntAny(title string, mapAny map[int]interface{}) MetaAttributesStacker 63 MapIntString(title string, mapAny map[int]string) MetaAttributesStacker 64 MapJsonResult(title string, mapAny map[string]corejson.Result) MetaAttributesStacker 65 66 JsonResult(title string, json *corejson.Result) MetaAttributesStacker 67 JsonResultItems(title string, jsons ...*corejson.Result) MetaAttributesStacker 68 69 Err(err error) MetaAttributesStacker 70 71 DefaultStackTraces() MetaAttributesStacker 72 ErrWithTypeTraces(title string, errType errcoreinf.BasicErrorTyper, err error) MetaAttributesStacker 73 ErrorsWithTypeTraces(title string, errType errcoreinf.BasicErrorTyper, errorItems ...error) MetaAttributesStacker 74 StackTraces(stackSkipIndex int, title string) MetaAttributesStacker 75 OnErrStackTraces(err error) MetaAttributesStacker 76 OnErrWrapperOrCollectionStackTraces(errWrapperOrCollection errcoreinf.BaseErrorOrCollectionWrapper) MetaAttributesStacker 77 78 FullStringer( 79 title string, 80 fullStringer errcoreinf.FullStringer, 81 ) MetaAttributesStacker 82 83 OnlyFullStringer( 84 fullStringer errcoreinf.FullStringer, 85 ) MetaAttributesStacker 86 87 FullTraceAsAttr( 88 title string, 89 attrFullStringWithTraces errcoreinf.FullStringWithTracesGetter, 90 ) MetaAttributesStacker 91 92 BasicErrWrapper(errWrapperOrCollection errcoreinf.BasicErrWrapper) MetaAttributesStacker 93 BaseRawErrCollectionDefiner(errWrapperOrCollection errcoreinf.BaseRawErrCollectionDefiner) MetaAttributesStacker 94 BaseErrorWrapperCollectionDefiner(errWrapperOrCollection errcoreinf.BaseErrorWrapperCollectionDefiner) MetaAttributesStacker 95 ErrWrapperOrCollection(errWrapperOrCollection errcoreinf.BaseErrorOrCollectionWrapper) MetaAttributesStacker 96 RawErrCollection(key string, err errcoreinf.BaseRawErrCollectionDefiner) MetaAttributesStacker 97 CompiledBasicErrWrapper(compiler errcoreinf.CompiledBasicErrWrapper) MetaAttributesStacker 98 99 Namer(title string, namer enuminf.Namer) MetaAttributesStacker 100 OnlyNamer(namer enuminf.Namer) MetaAttributesStacker 101 102 EnumTitleEnum(title enuminf.SimpleEnumer, enum enuminf.BasicEnumer) MetaAttributesStacker 103 SimpleEnumTitleEnum(title enuminf.SimpleEnumer, enum enuminf.SimpleEnumer) MetaAttributesStacker 104 Enum(title string, enum enuminf.BasicEnumer) MetaAttributesStacker 105 Enums(key string, enums ...enuminf.BasicEnumer) MetaAttributesStacker 106 OnlyEnum(enum enuminf.BasicEnumer) MetaAttributesStacker 107 OnlyEnums(enums ...enuminf.BasicEnumer) MetaAttributesStacker 108 OnlyString(value string) MetaAttributesStacker 109 OnlyStrings(values ...string) MetaAttributesStacker 110 111 OnlyStringer(stringer fmt.Stringer) MetaAttributesStacker 112 OnlyStringers(stringers ...fmt.Stringer) MetaAttributesStacker 113 114 OnlyIntegers(values ...int) MetaAttributesStacker 115 OnlyBooleans(values ...bool) MetaAttributesStacker 116 OnlyBytes(rawBytes []byte) MetaAttributesStacker 117 OnlyRawJson(rawBytes []byte) MetaAttributesStacker 118 OnlyBytesErr(rawBytes []byte, err error) MetaAttributesStacker 119 120 OnlySimpleBytesResulter( 121 result serializerinf.SimpleBytesResulter, 122 ) MetaAttributesStacker 123 124 OnlyBaseJsonResulter( 125 result serializerinf.BaseJsonResulter, 126 ) MetaAttributesStacker 127 128 OnlyBasicJsonResulter( 129 result serializerinf.BasicJsonResulter, 130 ) MetaAttributesStacker 131 OnlyJsonResulter( 132 result serializerinf.JsonResulter, 133 ) MetaAttributesStacker 134 135 OnlyAny(anyItem interface{}) MetaAttributesStacker 136 OnlyAnyItems(values ...interface{}) MetaAttributesStacker 137 OnlyMetaAttr(metaAttr MetaAttributesCompiler) MetaAttributesStacker 138 OnlyAnyIf(isLog bool, anyItem interface{}) MetaAttributesStacker 139 OnlyAnyItemsIf(isLog bool, anyItems ...interface{}) MetaAttributesStacker 140 141 OnlyMapBool(mapInt map[string]bool) MetaAttributesStacker 142 OnlyMapInt(mapInt map[string]int) MetaAttributesStacker 143 OnlyMapAny(mapAny map[string]interface{}) MetaAttributesStacker 144 OnlyMapIntAny(mapAny map[int]interface{}) MetaAttributesStacker 145 OnlyMapIntString(mapAny map[int]string) MetaAttributesStacker 146 OnlyMapJsonResult(mapAny map[string]corejson.Result) MetaAttributesStacker 147 148 OnlyJson(json *corejson.Result) MetaAttributesStacker 149 OnlyJsons(jsons ...*corejson.Result) MetaAttributesStacker 150 151 Bool(title string, isResult bool) MetaAttributesStacker 152 Booleans(title string, isResults ...bool) MetaAttributesStacker 153 154 Any(title string, anyItem interface{}) MetaAttributesStacker 155 156 Jsoner(jsoner corejson.Jsoner) MetaAttributesStacker 157 Jsoners(jsoners ...corejson.Jsoner) MetaAttributesStacker 158 JsonerTitle(title string, jsoner corejson.Jsoner) MetaAttributesStacker 159 JsonerIf(isLog bool, jsoner corejson.Jsoner) MetaAttributesStacker 160 JsonersIf(isLog bool, jsoners ...corejson.Jsoner) MetaAttributesStacker 161 162 Serializer(serializer Serializer) MetaAttributesStacker 163 Serializers(serializers ...Serializer) MetaAttributesStacker 164 SerializerFunc(serializerFunc func() ([]byte, error)) MetaAttributesStacker 165 SerializerFunctions(serializerFunctions ...func() ([]byte, error)) MetaAttributesStacker 166 167 StandardTaskEntityDefiner(entity entityinf.StandardTaskEntityDefiner) MetaAttributesStacker 168 TaskEntityDefiner(entity entityinf.TaskEntityDefiner) MetaAttributesStacker 169 170 StandardTaskEntityDefinerTitle(title string, entity entityinf.StandardTaskEntityDefiner) MetaAttributesStacker 171 TaskEntityDefinerTitle(title string, entity entityinf.TaskEntityDefiner) MetaAttributesStacker 172 173 LoggerModel(loggerModel SingleLogModeler) MetaAttributesStacker 174 LoggerModelTitle(title string, loggerModel SingleLogModeler) MetaAttributesStacker 175 176 Int(key string, i int) MetaAttributesStacker 177 Integers(key string, integerItems ...int) MetaAttributesStacker 178 Fmt(title, format string, v ...interface{}) MetaAttributesStacker 179 FmtIf(isLog bool, title, format string, v ...interface{}) MetaAttributesStacker 180 181 OnlyFmt(format string, v ...interface{}) MetaAttributesStacker 182 OnlyFmtIf(isLog bool, format string, v ...interface{}) MetaAttributesStacker 183 184 RawPayloadsGetter(payloadsGetter RawPayloadsGetter) MetaAttributesStacker 185 RawPayloadsGetterTitle(title string, payloadsGetter RawPayloadsGetter) MetaAttributesStacker 186 RawPayloadsGetterIf(isLog bool, payloadsGetter RawPayloadsGetter) MetaAttributesStacker 187 188 Inject(others ...MetaAttributesStacker) MetaAttributesStacker 189 ConcatNew(others ...MetaAttributesStacker) MetaAttributesStacker 190 coreinterface.Clearer 191 192 Items() map[string]interface{} 193 194 GetAsStrings() []string 195 HasKey(name string) bool 196 GetVal(keyName string) (val interface{}) 197 198 MetaAttributesCompiler 199 coreinterface.StandardSlicerContractsBinder 200 }