c3d.log

The log module can be used to interact with the C3D log which is saved in libC3D/c3d.log

add(str [, type])adds a new string into the log
dump()dumps the log into the log file.
bus_state()adds all the data currently in the data bus (under the debug type)
table(tbl [, type])writes a table into the log
get_log()returns the access point to the internal logging api
typesbunch of log types
add(str [, type])Source

adds a new string into the log

Parameters

  1. str string string to add to log
  2. type? number log type
dump()Source

dumps the log into the log file. (libC3D/c3d.log)

bus_state()Source

adds all the data currently in the data bus (under the debug type)

table(tbl [, type])Source

writes a table into the log

Parameters

  1. tbl table table to log
  2. type? number
get_log()Source

returns the access point to the internal logging api

Returns

  1. log_api internal log api
typesSource

bunch of log types

success
warn
error
fatal
info
debug
successSource
warnSource
errorSource
fatalSource
infoSource
debugSource