Skip to content

Releases: karl-gustav/runlogger

Release version

17 Apr 20:21
Compare
Choose a tag to compare
Removed the *j methods in favor of just using log.Field() everywhere

Now all the remaining logging methods can take log.Field() anywhere (the
*f methods need to have the formatted string first)

Never liked the *j methods in the first place so this is a huge win.

<severety>j loggers now take zero to many log.Field() methods

19 Mar 22:16
Compare
Choose a tag to compare

Making a non-backwards compatible change

v0.1.1: Add ServiceContext to structured log output

02 Mar 22:12
Compare
Choose a tag to compare
Because that way we can group the Errors from a service in the google
cloud Error Reporting tool

v0.1.0: Add @type the the different error severeties

16 Feb 20:49
Compare
Choose a tag to compare
Because we want the errors to show up in the Google Cloud Error
Reporting tool. This achieves that. We could also add `stack_trace` at
the root of the logEntry but that is not always desired. Plus we have
the source location.

fmt.Sprint --> fmt.Sprintln

22 Sep 21:52
Compare
Choose a tag to compare
Change standard log functions from fmt.Sprint --> fmt.Sprintln

Because Sprint doesn't add a space between the arguments when it prints

v0.0.9: Remove relative path from filenames

13 May 09:10
Compare
Choose a tag to compare
Beacuse it is much easier to read [main.go:33] than
[/home/kgr/git/test_runlogger/main.go:33]. And it makes even less sence
when using this in the cloud...

v0.0.7: Fix: still not logging

16 Mar 20:45
Compare
Choose a tag to compare
Probably buffering again...

v0.0.6: Simplify: Only have one method to write logs

09 Mar 19:44
Compare
Choose a tag to compare
Because too much duplicate logic to have both of them when they are so
similar.

Also fixed a bug with a missing flush of stdout

v0.0.5: Logging an error instead of truncating the message

05 Mar 18:27
Compare
Choose a tag to compare
Because the other logic didn't have a good way of checking the size of
the object you where potentially trying to serialize into the log.

v0.0.4

03 Feb 22:40
Compare
Choose a tag to compare
Setting hard limit on message/TextPayload to 100000B

Because GCP has a hard limit on 100KB (102400B) and I use the remaining
2400B on the other fields like timestamp and so on.