LOG(nged)
used to control logging
π log π
(the nged manual page) π
okay so bestie, welcome to the log page from the nged corner of the BRL-CAD manuals β this one's short, sweet, and lowkey iconic β¨
πΈ NAME πΈ
log β the command that controls logging π«Ά
π SYNOPSIS π
log get|start|stop
π¦ DESCRIPTION π¦
So the log command is literally the remote control for capturing bu_log output β that's BRL-CAD's internal logging system, fyi β and it drops all of it into an internal buffer that's attached to your current session π
no cap.
The three subcommands are, in no particular order except the order they're in:
startβ installs a hook into thebu_logsystem that intercepts all the subsequent log messages and appends them to an internal buffer (that'sged_logfor the note-takers π). The way that after you calllog start, log messages just accumulate silently in the buffer instead of being printed immediately? obsessed. π€«stopβ removes the logging hook and restores normalbu_logoutput behavior. Messages are no longer captured to the buffer. bye bestie πgetβ retrieves and clears the contents of the accumulated log buffer, handing you back all the captured messages since the lastlog start. Heads up though: the buffer is emptied after this call π so grab it while you can.
β¨ EXAMPLES β¨
π Example 1. Capture and retrieve log output π
mged> log start
mged> draw some_object.r
mged> log stop
mged> log get
What's happening here, step by step, because iykyk:
- starts capturing log output π¬
- draws an object (which may produce internal log messages β sneaky little things) π¨
- stops capturing β
- then retrieves and prints all the log messages that were generated during the
drawoperation π
slay. periodt. π
π AUTHOR π
BRL-CAD Team π«Ά (genuinely the main characters of this whole thing)
π BUG REPORTS π
If you find a bug or a problem, reports should be submitted via electronic mail to devs@brlcad.org π§ β they literally want to hear from you, so don't be shy.
fr fr though: get empties the buffer after it runs. that's not a vibe check you can redo, so if you need those messages twice, save them. π
and that's the whole page, bestie π§π this little gem lives in the BRL-CAD user commands collection, filed under the nged manual as LOG(nged) β catch you in the next one, mwah ππ
π¦ where this page comes from
- nixpkgs unstable: brlcad 7.44.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms