bauerzhou / log4go

Automatically exported from code.google.com/p/log4go
BSD 2-Clause "Simplified" License
0 stars 0 forks source link

Make "level" type public #12

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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:

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
Good call, fixed.

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