Warning: session_start(): open(/var/lib/php/sessions/sess_t3g04jmjbqcrvk1at8a9fb9b9s, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
!7
// TODO: capture all of System.out/System.err
sclass SystemPrintLog extends DynModule {
transient O log;
transient JTextArea ta;
void start {
log = getCreator('print_log);
doEvery(1000, r updateMe);
}
JComponent visualize() {
ret componentPopupMenuItems(jSection("SYSTEM LOG", ta = moveCaretToEnd(typeWriterTextArea(str(log)))),
"Clear", r { clearStringBuffer_gen(log) },
"Copy to new window", r { showText("System Log", log) });
}
void unvisualize() { ta = null; }
void update {
if (ta != null) setText(ta, str(log));
}
}