Skip to content
Gratt-5r2 edited this page May 16, 2022 · 3 revisions

class CLogger

Allow to print messages to the file in the disk.

CLogger( string file ) - creates new logger object and file in the disk.

CCmd& operator << ( any ptr ) - print object ~CLogger() - destroys this object and save flush data file to the disk.

example

in:

cmd << 200 << tab << "Golden Nuggets" << endl << 5 << tab << "rusty swords";

out:

============== Log begin 15.02.2022 ==============
15:27:40    200    Golden Nuggets
15:27:40    5      rusty swords
============== Log end ==============
Clone this wiki locally