phuslu / log

Fastest structured logging
MIT License
672 stars 44 forks source link

Long filename in `caller` #45

Closed u2386 closed 3 years ago

u2386 commented 3 years ago

It would be much convenient if we could log long filename and line number, and stdlib supports this.

u2386 commented 3 years ago

44

phuslu commented 3 years ago

thanks, merged and renamed the option to FullpathCaller

phuslu commented 2 years ago

Removed "FullpathCaller" because its name is really untidy. Now merge it to "Caller".

Set "Caller": 1 will have a short filename caller, set "Caller": -1 will have a long filename caller.

Thanks!