Assemberist / cppRpg

0 stars 0 forks source link

Log class rework. #24

Open Assemberist opened 1 year ago

Assemberist commented 1 year ago

I have a great idea - to force Log class move messages as to text fields, as to files, as to both. It is continuation of idea to have configurable log class and also output to files can be used for tests when I'll create test environment. Also it can be part of separation of code to functionality parts. So Log will be part of game Core.

Assemberist commented 1 year ago

Text_filed-based classes are updated. Now log is interface that can write a data. Old log now text_log and created file_log for print to file. Next step is to create union debug-module with features: 1) Choose output in runtime. 2) Union interface with logging 3) It can be disabled on compilation stage.

Assemberist commented 1 year ago

It can be delivered to master but rest not needed right now so it will be postponed.