gitlab.com/evatix-go/core@v1.3.55/coreinterface/loggerinf/atomic-interfaces.go (about)

     1  package loggerinf
     2  
     3  import "io"
     4  
     5  type Committer interface {
     6  	Commit()
     7  }
     8  
     9  type BytesCompiler interface {
    10  	CompileBytes() ([]byte, error)
    11  }
    12  
    13  type BytesCompilerIf interface {
    14  	CompileBytesIf(isCompile bool) ([]byte, error)
    15  }
    16  
    17  type MustBytesCompiler interface {
    18  	CompileBytesMust() []byte
    19  }
    20  
    21  type StringFinalizer interface {
    22  	Finalize() string
    23  }
    24  
    25  type IfStringCompiler interface {
    26  	CompileIf(isCompile bool) string
    27  }
    28  
    29  type Compiler interface {
    30  	Compile() string
    31  }
    32  
    33  type FmtCompiler interface {
    34  	CompileFmt(formatter string, v ...interface{}) string
    35  }
    36  
    37  type Serializer interface {
    38  	Serialize() ([]byte, error)
    39  }
    40  
    41  type NewGeneralWriter interface {
    42  	NewGeneralWriter(writeConfigurer WriterConfigurer) io.Writer
    43  }
    44  
    45  type Configurer interface {
    46  	LoggerTyper() LoggerTyper
    47  	StackSkipIndex() int
    48  }
    49  
    50  type WriterConfigurer interface {
    51  	Configurer
    52  	AdditionalConfigProcessor
    53  }
    54  
    55  type AdditionalConfigProcessor interface {
    56  	AdditionalConfigBytes() []byte
    57  	AdditionalConfigProcess() error
    58  }