sdslabs / Rubeus

A cross platform 2D game engine written in C++ for beginners
https://blog.sdslabs.co/Rubeus-Docs
MIT License
184 stars 15 forks source link

Add ability to log to a user-defined file #124

Open twaritwaikar opened 5 years ago

twaritwaikar commented 5 years ago

https://github.com/sdslabs/Rubeus/blob/d93de7c449c8366e9834138dd0131a07a93e6428/RubeusCore/Source/UtilityComponents/logger_component.h#L45 The stream variable declared above is used to send logs to a file. However, we would like the user to be able to set this value by themselves. This requires making 2 functions in this class.

  1. Set the log file variable
  2. Set the path to the logs and the engine figures out how to make a new stream variable.