go-playground / log

:green_book: Simple, configurable and scalable Structured Logging for Go.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Gather file + line info on all error type logs

deankarn opened this issue · comments

Gather file + line info on all error type logs such as log.Error(..), log.Fatal(...) etc..

This information is worth the overhead to know exactly what went wrong where.

TODO

  • Retain the SetCallerInfo function to turn it on for any/all log functions.
  • Add checks for certain log levels
  • update handlers to check for line number == 0 if not then caller information is present.