Skip to content

w41203208/MXLog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Struct

  • Core

    • MessageWriter
    • MessageWriterPool
    • WriterCore:define by self, writer message to destination
  • Custom

    • IWriterCore
    • IEncoder
    • IMessage:use to pack string and other field to be a message and put in writerCore
    • IMessageFactory:

Design

log view

  • string format

    [level] date time codedetail messagebody
    
  • can set codedetail what content display

structure design

  • limit the number of goroutines at the same time Ref

  • use pool to decrease GC loading ✅

  • maybe use command pattern to refactor new message process ✅

  • get log async and get log sync

  • how to let message factory can get some attribute that it is necessary to create new message.

    • Take a NewFactoryFunc into NewXLogFunc
    • execute it in the NewXLogFunc and store it into XLog
  • link to another log api like loki promtail push api Ref

About

Log ( Unfinished )

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published