Vizard 8 » Command Index » Vizard modules » viz » <viz>.log
8.1

<viz>.log

Prints a message at the specified log level.

<viz>.log(  
level  
*args  
sep = ' ' # keyword argument
end = '\n' # keyword argument
)  
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

<viz>.logAlways
<viz>.logDebug
<viz>.logError
<viz>.logInfo
<viz>.logNotice
<viz>.logWarn
<viz>.setLogFile
<viz>.setLogLevel