Re: [go-nuts] [Proposal] Std Lib Logging Abstraction

2017-02-13 Thread Sotirios Mantziaris
i have already build such an abstraction myself (https://github.com/mantzas/adaptlog). the issue is not what i use but what all the packages out there use that i import. checkout the link mentioned by Dave Cheney On Monday, February 13, 2017 at 4:18:58 PM UTC+2, Tamás Gulácsi wrote: > > Use an a

Re: [go-nuts] [Proposal] Std Lib Logging Abstraction

2017-02-13 Thread Tamás Gulácsi
Use an adapter which provides a writer to std lib's log, and pipes it through your chosen logging lib. Like go-kit/kit/log.StdAdapter. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from

Re: [go-nuts] [Proposal] Std Lib Logging Abstraction

2017-02-13 Thread Sotirios Mantziaris
nice, i'll take a look On Monday, February 13, 2017 at 10:00:15 AM UTC+2, Dave Cheney wrote: > > There is an active discussion thread over on the development list -> > https://groups.google.com/forum/#!topic/golang-dev/F3l9Iz1JX4g -- You received this message because you are subscribed to the G

Re: [go-nuts] [Proposal] Std Lib Logging Abstraction

2017-02-13 Thread Dave Cheney
There is an active discussion thread over on the development list -> https://groups.google.com/forum/#!topic/golang-dev/F3l9Iz1JX4g -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it,

Re: [go-nuts] [Proposal] Std Lib Logging Abstraction

2017-02-12 Thread Sotirios Mantziaris
let's assume you use a package that logs with std "log" package and my app uses something else let's say logrus. What would the logging result be? Would it not be inconsistent? On Monday, February 13, 2017 at 9:47:46 AM UTC+2, Jan Mercl wrote: > > On Mon, Feb 13, 2017 at 8:44 AM Sotirios Mantziar

Re: [go-nuts] [Proposal] Std Lib Logging Abstraction

2017-02-12 Thread Jan Mercl
On Mon, Feb 13, 2017 at 8:44 AM Sotirios Mantziaris wrote: > ... which prohibit me of using anything else if i want to have a consistent logging experience. What does "consistent logging experience" mean? -- -j -- You received this message because you are subscribed to the Google Groups "

[go-nuts] [Proposal] Std Lib Logging Abstraction

2017-02-12 Thread Sotirios Mantziaris
Hi, i was wondering if the std lib should implement a logging abstraction so that every lib developer can abstract away logging and let the final lib user provide the implementation it needs. The reason for this is that like everybody else i use a lot of open source and many of them use std "l