Love needs file logging

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
User avatar
cohadar
Prole
Posts: 25
Joined: Mon May 04, 2015 5:46 am
Contact:

Love needs file logging

Post by cohadar »

I notice the lack of love.log module.
Proper logging is very important for debugging, print is simply not enough.
User avatar
T-Bone
Inner party member
Posts: 1492
Joined: Thu Jun 09, 2011 9:03 am

Re: Love needs file logging

Post by T-Bone »

Should be pretty easy to implement yourself with love.filesystem.
User avatar
Fenrir
Party member
Posts: 222
Joined: Wed Nov 27, 2013 9:44 am
Contact:

Re: Love needs file logging

Post by Fenrir »

I must agree that having a love.log with multi-thread support and multiple severity levels would be helpful... :)
User avatar
zorg
Party member
Posts: 3470
Joined: Thu Dec 13, 2012 2:55 pm
Location: Absurdistan, Hungary
Contact:

Re: Love needs file logging

Post 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 :)
Me and my stuff :3True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.
User avatar
s-ol
Party member
Posts: 1077
Joined: Mon Sep 15, 2014 7:41 pm
Location: Cologne, Germany
Contact:

Re: Love needs file logging

Post 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.

s-ol.nu /blog  -  p.s-ol.be /st8.lua  -  g.s-ol.be /gtglg /curcur

Code: Select all

print( type(love) )
if false then
  baby:hurt(me)
end
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: Love needs file logging

Post 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.
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot] and 3 guests