I think you could also do this:Code: [Select]new consoleLogger(log, "object_dump.txt", false); your_object.dump(); log.detach(); log.delete();
new consoleLogger(log, "object_dump.txt", false); your_object.dump(); log.detach(); log.delete();
Tried it. The text file was completely blank.
Well I tried it too and it works
Tried on a fresh install of blockland demo, works 100%. We finally have a way to read the console lol, gj
Well you still can't have a callback for the lines. You'd have to create a logger to a file in config, then like a minute later detach and delete that logger, parse the file, and create a new logger. That's not exactly... efficient.
Still, it's a way.
Tried on a fresh install of blockland demo, works 100%.
I tried this, it made the file, but it was blank
FYI using setLogMode(1) seriously reduces performance because the file has to be opened and then closed again for every line.
I've had my log mode set to that for a long long time, and I have no performance issues unless there's some form of massive console spam going on.
What's with you and that font?