Small and simple logger for GoLang
All you need is a setting where you want to use the logs (to console and/or to file) and the minimum log level.
LoggerConfiguration.
WriteTo().
Console().
File("MyTestApp", "C:\PathForLogsLocation").
MinimumLevel(LogLevel.DEBUG)
Log.Information("This is information event.", "But I want to add time too: ", time.Now().Format("15:04:05"))
Log.Warning("Just warning event :)")
Log.Debug("I hope you will not use this in production")
Log.Error("Something went wrong... :(")
Log.Fatal("This should never, ever happen!", "Call to support: ", 123456789)