Skip to content

Releases: gol4ng/logger

v0.5.1

21 Feb 10:54
fdfc1e8
Compare
Choose a tag to compare

Add some Field/Fields method

v0.5.0

17 Feb 09:17
Compare
Choose a tag to compare

Improve logger signature error handling (#64)

⚠️ Breaking change

  • Signature change

  • No more context mandatory

  • No more return error (LogInterface, LoggerInterface) use errorHandler instead

  • Field now contain his name as attribute

  • We replace

  • formatter.EnableColor by formatter.WithColor

  • formatter.DisplayContext by formatter.WithContext

v0.4.2

17 Feb 08:57
Compare
Choose a tag to compare

Implement timestamp middleware (#65)

v0.4.1

28 Jan 07:55
846eed7
Compare
Choose a tag to compare

add wrapper for wrappable mocks #62

v0.4.0

24 Jan 14:47
cae703b
Compare
Choose a tag to compare

⚠️ Testing BC Break

the testing.Logger{} become a real Logger with a special in memory handler in order to do some assertion during tests
Migration

	myLogger := &testing_logger.Logger{}
        // some code that log
	entries := myLogger.GetEntries()
	assert.Len(t, entries, 5) // your logging assertions

BECOME

        myLogger, store := testing_logger.NewLogger()
        // some code that log
	entries := store.GetEntries()
	assert.Len(t, entries, 5) // your logging assertions

v0.3.4

02 Jan 12:38
Compare
Choose a tag to compare

change
Wrap(middleware MiddlewareInterface) LoggerInterface to
Wrap(middlewares ...MiddlewareInterface) LoggerInterface
AND
WrapNew(middleware MiddlewareInterface) LoggerInterface to
WrapNew(middlewares ...MiddlewareInterface) LoggerInterface

v0.3.3

27 Dec 14:08
076769e
Compare
Choose a tag to compare

fix testing logger entries race condition

v0.3.2

26 Dec 15:24
9f9bdb9
Compare
Choose a tag to compare

[Testing] add a testing logger for third parties test usage
[Testing] add Loggerinterface WrappableLoggerInterface LogInterface

v0.3.1

26 Dec 10:35
c4583c9
Compare
Choose a tag to compare

Add missing mocks for third party testing

v0.3.0

22 Oct 14:20
209c6ff
Compare
Choose a tag to compare
  • allow match with uppercase level #53