Книга: DirectX 8 Programming Tutorial

HTML Logging

HTML Logging

You may have notices in the code above, some new logging functions called LogInfo and LogError. Well, by using these new logging functions we can create a more readable log file. Errors will be highlighted in red and normal information will be in black. To see the log file, take a look in the project folder at this file called Log.htm once you have run the sample code. There is also a LogWarning function, which you can use to log warnings that will appear in orange. There is also a LogMemoryUsage() function which will log the amount of memory your application is currently using. Do not use this function inside your game loop at it is far to slow.

Оглавление книги


Генерация: 0.323. Запросов К БД/Cache: 3 / 0
поделиться
Вверх Вниз