KLog

Post Reply
User avatar
Zidell
- Dragon Clan -
- Dragon Clan -
Posts: 268
Joined: Tue Mar 24, 2015 13:53 pm

KLog

Post by Zidell »

Designed to display debug info as OutputDebugString.
Use DebugView or a similar program to view output

Code: Select all

Root {
	KLog {
		Settings {
			DefaultLevel = 'LogAll'
			StoreDefaultLevels = '0'
			PrependExeName = '0'
			ClearDbgView = '1'
		}
	}
}
ClearDbgView = '1' - clears DebugView of messages after closing the game.
DefaultLevel = 'LogAll' - Only the message type specified in this field will be created.
Possible options:
  • LogAll - log all messages
  • Nothing - no messages
  • Error - only error messages
  • Warn - only warn messages
  • Info - only info messages
  • Spam - only spam messages
StoreDefaultLevels = '1' - creates a list of modules in settings.cfg with which you can configure the message type for each module separately.
Example: PestGfx.Scape = 'Warn' - PestGfx.Scape module will only create warn messages now, they will be displayed only if "LogAll" or "Warn" is set in the DefaultLevel field.
PrependExeName = '1' - adds the binary file name that created the message to the debug output. (Paraworld.exe, PWClient.exe, PWServer.exe)

Usage:
KLog.LogError("", "");
CGameWrap.LogError("", "");
CSrvWrap.LogError("", "");
The rest can be found in UslAutoDocs.

If pw crashes it also creates logs in \AppData\Local\CrashDumps and Paraworld\bin\uslcrashlog.txt
Post Reply

Return to “Zidell's Research”