KierannCode / Playground

Project about creating a game engine with SDL from scratch, this is for fun and for my personal experience only
0 stars 0 forks source link

Allow formatted outputs in class OSDL::Log #7

Closed KierannCode closed 2 years ago

KierannCode commented 2 years ago

OSDL::Log can currently only output predefined text

It should be able to output formatted text with any object Objective : allow syntaxes with c++ streams like "OSDL::Log::debug() << "message : " << 5 << OSDL::Log::end"

KierannCode commented 2 years ago

New branch "dev" created for this issue

KierannCode commented 2 years ago

Formatted Log outputs implemented in dev branch Not yet documented

Final syntax example: OSDL::Log::startInfo() << "Log message : " << foo << OSDL::Log::end; The previous methods are preserved for simplicity, since they are also used in the source code of the formatted outputs.

Request more manual testing in concurrency case scenarios

KierannCode commented 2 years ago

Manual tests performed well with high-intensity and multi-threaded logging. This issue will be resolved. If some bugs are discovered afterwards, a new issue will be created.