omdl
v0.9.5
OpenSCAD Mechanical Design Library
|
Console message logging. More...
Files | |
file | console.scad |
Message logging functions. | |
Functions | |
function | stack (b=0, t=0) |
Format the function call stack as a string. More... | |
module | log_echo (m) |
Output message to console. More... | |
module | log_type (t, m) |
Output diagnostic message to console. More... | |
module | log_debug (m) |
Output diagnostic message to console. More... | |
module | log_info (m) |
Output information message to console. More... | |
module | log_warn (m) |
Output warning message to console. More... | |
module | log_error (m) |
Output error message to console. More... | |
Console message logging.
Requires: |
---|
include <omdl-base.scad>; |
Console script
Console script output
module log_debug | ( | m | ) |
Output diagnostic message to console.
m | <string> An output message. |
Message is written if and only if $log_debug
is true
.
Definition at line 302 of file console.scad.
module log_echo | ( | m | ) |
Output message to console.
m | <string> An output message. |
Definition at line 272 of file console.scad.
module log_error | ( | m | ) |
Output error message to console.
m | <string> An output message. |
Output an error message to the console.
Definition at line 365 of file console.scad.
module log_info | ( | m | ) |
Output information message to console.
m | <string> An output message. |
Definition at line 318 of file console.scad.
module log_type | ( | t | , |
m | |||
) |
Output diagnostic message to console.
t | <string> An output message type. |
m | <string> An output message. |
Definition at line 284 of file console.scad.
module log_warn | ( | m | ) |
Output warning message to console.
m | <string> An output message. |
Definition at line 333 of file console.scad.
function stack | ( | b | = 0 , |
t | = 0 |
||
) |
Format the function call stack as a string.
b | <integer> The stack index bottom offset. Return function names above this offset. |
t | <integer> The stack index top offset. Return function names below this offset. |
b
is greater than the current number of function instances (ie: b > $parent_modules-1
). "root()"
when the function call stack is empty (ie: at the root of a script).