Open topic with navigation
<viz>.log
Prints a message at the specified log level.
<viz>.log( |
|
level |
*args |
sep = ' ' |
end = '\n' |
) |
|
level
One of the following values:
viz.LOG_ALWAYS
viz.LOG_ERROR
viz.LOG_WARN
viz.LOG_NOTICE
viz.LOG_INFO
viz.LOG_DEBUG
*args
Variable number of arguments of any type
sep = ' '
String used to join arguments
end = '\n'
String added to end of joined arguments
Remarks
All the specified arguments will be converted to strings and concatentated together. If the current log level is higher than the specified log level, then the message will not be printed.
Return Value
None
Example
#Prints: Completed Task Foo
viz.log(viz.LOG_NOTICE, "Completed Task Foo")
#Prints: some numbers 2 3
viz.log(viz.LOG_ERROR,'some numbers',2,3)
See also