lightma / log4go

Automatically exported from code.google.com/p/log4go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Make "level" type public

GoogleCodeExporter opened this issue · comments

It's currently impossible to maintain references to log4go level values outside 
the package.

For example, I want to have the log level configurable through a flag. To do 
this I map a symbolic name like "info" to a numeric integer level. With no 
ability to reference the level type, this is impossible.

Patch attached.

Original issue reported on code.google.com by a...@swapoff.org on 10 Jul 2012 at 6:36

Attachments:

Is there an expected update with the fix ?
If not, I will need to clone the project to use in our development.

Original comment by va...@percona.com on 31 May 2013 at 2:08

I have a fork here with the fix applied: https://github.com/alecthomas/log4go

I've been using it for the last year without issues.

Original comment by a...@swapoff.org on 31 May 2013 at 2:09

wow, great.
what about to merge fixes for 
https://code.google.com/p/log4go/issues/detail?id=11 ?
That one is annoying too.

Original comment by va...@percona.com on 31 May 2013 at 2:26

Good call, fixed.

Original comment by a...@swapoff.org on 31 May 2013 at 2:30