http://golang.org/pkg/runtime/#Caller
> I suppose that if there was such a way, the standard "log" package
> would use it. I'm aware that Go does not and will certainly never have
> a standard preprocessor, for the sake of compiling speed but, these
> informations are already known by the compiler, as we can see
> (hopefuly) when doing compilation errors.
> I'm writing a /true/ logger inspired of the log4j I daily use, but
> without thes informations, a logger is quite useless...
http://code.google.com/p/log4go/
- jessta
--
=====================
http://jessta.id.au
-rob