[1.0.0][Old request] Is it now possible to send an output for logging and debugging in 1.0.0?

2 replies [Last post]
UltiMaxKom
UltiMaxKom's picture
User offline. Last seen 28 weeks 3 days ago. Offline
Joined: 2016-06-26
Posts: 381

I want to review my long log which made with WriteLnToChat (Or HogSay). Outputting it to an external log file would be the best solution, because there's so many of them. But I can't, still is, just like what I remembered.

I've asked about better logging and debugging before, but I don't know whether that is already been done or not while I was in my deep slumber. It is already been heard by the devs, though, iirc. So I would like to see that yes, it improved on 1.0.0 or so updates - or something similarly good.

Anyway, thank you in advance.

╟───NW──────┼──────N╢

╓──────────────────╖ ╓──────────────────╖
⠀HP: ██████████ 1E9/1E91E9/1E9 ██████████ :MP
╙──────────────────╜ ╙──────────────────╜

Wuzzy
Wuzzy's picture
User offline. Last seen 10 hours 48 min ago. Offline
Joined: 2012-06-20
Posts: 1190

Nope, logging hasn't much changed. There's no separate file for that.

But in the log file, stuff that comes from Lua script will be prepended with “Lua: ”. So you could use this knowledge to filter out the irrelevant stuff.

But yeah, that's not really the most convenient way to do this.

Hi, I am a Hedgewars developer. Smile I accept personal donations in bitcoin. Heart 17fsUywHxeMHKG41UFfu34F1rAxZcrVoqH

UltiMaxKom
UltiMaxKom's picture
User offline. Last seen 28 weeks 3 days ago. Offline
Joined: 2016-06-26
Posts: 381

[1] Oh... =[

[2] I knew about that but yeah, it does filter most things out.

[3] Can you add some improvement to the logging system, please? The logging for debugging. This is a fairly important feature in my honest opinion. It would hurt to not have this...




Main Suggestion:

⠀⠀⠀A new function (Do not name it as "Debug" because I already have mine, or "debug" because system reserve) and a new log file where everything script debugging-related are stored would be really great- no, it'll be super great. This is a basic feature, a must-have for modding; scripting, in this case.

Optional:

⠀⠀⠀+Different from debugging one, kinda, adding an in-game chat-log would also be really great. The difference with debugging one (If this optional chat-log is implemented) would be that this shows in the game chat history, where the first debugging function would only show up if the (new) variable that controls whether it's a dev-test match or not is true.




If both is too much hassle (for now), then the least minimal would be the basic logging function, or the chat-log file. Either way, any of them works.

⠀⠀⠀Anyway, thank you for responding.

╟───NW──────┼──────N╢

╓──────────────────╖ ╓──────────────────╖
⠀HP: ██████████ 1E9/1E91E9/1E9 ██████████ :MP
╙──────────────────╜ ╙──────────────────╜

Copyright © 2004-2017 Hedgewars Project. All rights reserved. [ contact ]