Page 1 of 1
Love needs file logging
Posted: Thu May 07, 2015 10:51 am
by cohadar
I notice the lack of love.log module.
Proper logging is very important for debugging, print is simply not enough.
Re: Love needs file logging
Posted: Thu May 07, 2015 10:55 am
by T-Bone
Should be pretty easy to implement yourself with love.filesystem.
Re: Love needs file logging
Posted: Thu May 07, 2015 11:05 am
by Fenrir
I must agree that having a love.log with multi-thread support and multiple severity levels would be helpful...
Re: Love needs file logging
Posted: Thu May 07, 2015 3:18 pm
by zorg
I'd argue that this is one of those things where people like to customize very heavily; their needs are often incompatible in ways one wouldn't think of;
that said, i did implement half of the logger faetures Fenrir wrote in one of my games: severity levels; threading wouldn't be that hard either, depending on the implementation. I may release it soon-ish, along with a few other more experimental stuff i was working on
Re: Love needs file logging
Posted: Thu May 07, 2015 4:30 pm
by s-ol
Fenrir wrote:I must agree that having a love.log with
multi-thread supportand multiple severity levels would be helpful...
...is the one I clearly see a need for. Severity levels etc. you can most easily build yourself in <20 lines of Lua, but a proper locking/blocking mechanism would really be worth it.
Re: Love needs file logging
Posted: Thu May 07, 2015 5:07 pm
by bartbes
You can just dump it in a [wiki]Channel[/wiki], or even just use the love.event, and then have a callback in the main thread that deals with it.