← Back

ofxSuperLog

github.com/mazbox/ofxSuperLog · @mazbox
OF 0.8 Utilities

Extends the openFrameworks logging system so a single log call writes simultaneously to a timestamped log file and on-screen log.

16 6 Last commit 12y ago Created 13y ago

Forks

Forks pushed to more recently than mazbox/ofxSuperLog itself, plus any admin-confirmed fork with commits of its own — worth checking if you're hitting issues with the original.

armadillu/ofxSuperLog by @armadillu · ★ 4 · pushed 2y ago

README

ofxSuperLog

This enhances the ofLog system to allow you to have one log call that simultaneously writes to a log file (with a timestamped name, per-launch) and to the screen.

To use, in testApp::setup()

Call ofSetLoggerChannel(ofxSuperLog::getLogger(true, true, "logs"));

Where the first paramter is whether you want to write to the console, the second is whether you want to draw it to the screen, and the third, if you want to write to a file, what the folder is called.

If you specify a folder that doesn't exist it will create one for you.

There is some basic interaction with the screen based logging so you can minimize it. If you want to hide it completely you'd call this:

ofxSuperLog::getLogger()->setScreenLoggingEnabled(false);

Get this addon

HTTPS
SSH