I'm trying to figure out how to log state transitions to a file, preferably using fstream. I see that there are logging classes that can log to streams, but I don't know exactly how to implement that. I'm able to get a logger that prints to std::cout, but I need to pipe it to a file instead. Is there an example somewhere on how to do this?
I'm trying to figure out how to log state transitions to a file, preferably using fstream. I see that there are logging classes that can log to streams, but I don't know exactly how to implement that. I'm able to get a logger that prints to std::cout, but I need to pipe it to a file instead. Is there an example somewhere on how to do this?