Special Aircraft Service

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1] 2 3   Go Down

Author Topic: Instant Log File Output  (Read 48620 times)

0 Members and 1 Guest are viewing this topic.

SAS~Storebror

  • Editor
  • member
  • Offline Offline
  • Posts: 23587
  • Taking a timeout
    • STFU
Instant Log File Output
« on: October 25, 2011, 08:28:52 AM »

Hi friendly fellows,

this is a spinoff from a DBW bug report.

NOTE: Don't install this mod if you're running SAS Modact 5 or later. A later version of this mod is implemented in there already.

As you know, you can enable two log files in your conf.ini, one being the "event log", which basically holds all mission related messages, the other being the "console log", which holds all other information such as IL-2 game engine messages, errors and so on.
To enable the logfiles, open your conf.ini file (can be found in your IL-2 game folder) and adjust the following lines/parameters:

  • Event Log:
    In the [game] section, set
    eventlog=eventlog.lst
    Additionally, when you want to keep the log (which means it won't be cleared when you start a new mission, which in turn means the log file will be constantly growing, therefor this is not recommended) set
    eventlogkeep=1
    otherwise set
    eventlogkeep=0
  • Console Log:
    In the [Console] section, set
    LOG=1
    and
    LOGFILE=log.lst
    Additionally, when you want to keep the log (which means it won't be cleared when you start a new mission, which in turn means the log file will be constantly growing, therefor this is not recommended) set
    LOGKEEP=1
    otherwise set
    LOGKEEP=0
    Last but not least if you want to see a timestamp in front of each log line, set
    LOGTIME=1
    otherwise set
    LOGTIME=0

Now the one thing about those log files is that by default they are buffered, which means that you'll see partial contents of the logfiles only unless you quit the game, i.e. exit from IL-2, and when your game crashes, the file contents are usually truncated.
This can be annoying when you try to tackle down a specific issue which occurs only under very special circumstances, so I eventually decided to write this mod which allows you to see the logfile's contents "in realtime", meaning that the log will be written completely while the game is running.
For advanced usage I recommend to use this in combination with some "tail" like utility, I for myself use "Tail for Win32" which can be found here for free: http://tailforwin32.sourceforge.net/

That much for the description, this is the mod. Just extract to your "#UP#", "#DBW" or "MODS" folder or whatever name your modded files folder may carry. This is tested with Stock IL-2 4.10.1m, UP3 RC4 and DBW 1.6, other game versions are untested and hence unsupported.

Go get the mod here if you like:
InstantLog v1.00

Best regards - Mike


Edit Gerax:
please read here how to post a log correctly so that no data is lost
("code" option)!
https://www.sas1946.com/main/index.php?topic=39780.0
Logged
Don't split your mentality without thinking twice.

SAS~Malone

  • flying as #46 with the FAC
  • Editor
  • member
  • Offline Offline
  • Posts: 14562
  • proud member of that 'other' site
Re: Instant Log File Output
« Reply #1 on: October 25, 2011, 08:48:49 AM »

thanks Mike!
here you go, mate :D
Logged
.....taking fun seriously since 1968.....  8)

SAS~Storebror

  • Editor
  • member
  • Offline Offline
  • Posts: 23587
  • Taking a timeout
    • STFU
Re: Instant Log File Output
« Reply #2 on: October 25, 2011, 08:55:52 AM »

Oooooh yes, that's what I need, just in time! :D

Best regards - Mike
Logged
Don't split your mentality without thinking twice.

cgagan

  • SAS Team
  • member
  • Offline Offline
  • Posts: 5744
Re: Instant Log File Output
« Reply #3 on: October 25, 2011, 10:05:56 AM »

From what I managed to figure out, this is truly an ingenious idea! Many thanks,  8)
Logged

sputnikshock

  • Modder
  • member
  • Offline Offline
  • Posts: 419
  • exclusively IFR
Re: Instant Log File Output
« Reply #4 on: July 04, 2012, 09:20:56 PM »

This mod is getting too little praise.
An extremely useful must have indeed!
Thanks.
Logged

RedSpade

  • member
  • Offline Offline
  • Posts: 625
  • Thankful to all modders
Re: Instant Log File Output
« Reply #5 on: July 06, 2012, 05:43:19 PM »

I'm with you Sputnikshock!  This truly is a must have!  Malone only offered up a cup of java and a cookie.  ;)  I see your bet, and i raise you a Guinness!   8)
Thanks Storebror.  If you are ever in the Seattle area, I'm good for one of these!
Logged

Crash_MX06

  • member
  • Offline Offline
  • Posts: 268
  • DBW 1.71 + TFM + Gurner FX :D
    • DarkOrbit Game
Re: Instant Log File Output
« Reply #6 on: October 06, 2012, 04:19:16 AM »

I always crash at 70%
Logged

BravoFxTrt

  • "BIGFOOT"
  • Modder
  • member
  • Offline Offline
  • Posts: 13433
  • Flying Ass Clown #13
Re: Instant Log File Output
« Reply #7 on: October 27, 2012, 12:22:43 AM »

That Guinness looks as good as this awesome Mod.
Logged
MSI R9 280X 6GB x2/Crossfire /ASUS M5A99FX PRO R2.0 Mobo/AMD FX 4170 Bulldozer 4core CPU/RAM Kingston HyperX FURY 16GB/ Corsair RM 1000WATT PSU/Windows 10 Enterprise 64bit

Germy66

  • vom K
  • Modder
  • member
  • Offline Offline
  • Posts: 285
Re: Instant Log File Output
« Reply #8 on: October 29, 2012, 10:13:14 AM »

I always crash at 70%

it also crashes at 70% when i only(without InstandLog classfiles) get :(

Console Log:
LOG=1

on.
any ideas?? :-[

Console Log:
LOG=0
game starts normal
Logged

BravoFxTrt

  • "BIGFOOT"
  • Modder
  • member
  • Offline Offline
  • Posts: 13433
  • Flying Ass Clown #13
Re: Instant Log File Output
« Reply #9 on: October 29, 2012, 11:15:45 AM »

What game version Germy?
Logged
MSI R9 280X 6GB x2/Crossfire /ASUS M5A99FX PRO R2.0 Mobo/AMD FX 4170 Bulldozer 4core CPU/RAM Kingston HyperX FURY 16GB/ Corsair RM 1000WATT PSU/Windows 10 Enterprise 64bit

Epervier

  • 4.09 Guardian Angel !
  • SAS Team
  • member
  • Offline Offline
  • Posts: 9453
  • I'm French and Rebel_409! Nobody is perfect!
    • Some tinkering here
Re: Instant Log File Output
« Reply #10 on: October 29, 2012, 11:34:06 AM »

@Germy66
InstantLog work fine in my UP2.01 !  ;)
Logged
If your results do not live up to your expectations, tell yourself that the great oak was once an acorn too. - Lao Zi -

Germy66

  • vom K
  • Modder
  • member
  • Offline Offline
  • Posts: 285
Re: Instant Log File Output
« Reply #11 on: October 30, 2012, 10:20:39 AM »

i have 4.09 vesion modded
must i use the orginal 4.09 chief.ini ?
maybe someone can upload his exe and wrapper
Logged
Pages: [1] 2 3   Go Up
 

Page created in 0.084 seconds with 26 queries.