3DCoat Python API
The 3DCoat Python API documentation.
Loading...
Searching...
No Matches
coat.logger Class Reference

Public Member Functions

 __init__ (self)
 
 __init__ (self, str filename)
 
 __init__ (self)
 
 open (self)
 open the accumulated log in the default text editor
 
 showMessage (self)
 show the accumulated log in the message box
 
logger directTo (self, str filename)
 Direct the log output to the file.
 
any getFullPath (self)
 Returns the absolute path to the log file.
 
logger flush (self)
 save all acumulated text to the file
 
logger newline (self)
 start newline in the text file
 
logger timestamp (self)
 add the timestamp to the log as the
 
logger startTimer (self)
 start the timer to profile some operation
 
logger endTimer (self)
 stop the timer and output the time into the log as amount of microseconds
 
logger floatPrecission (self, int signs=2)
 set the precission of floating-point output
 

Constructor & Destructor Documentation

◆ __init__() [1/3]

coat.logger.__init__ ( self)

◆ __init__() [2/3]

coat.logger.__init__ ( self,
str filename )

◆ __init__() [3/3]

coat.logger.__init__ ( self)

Member Function Documentation

◆ directTo()

logger coat.logger.directTo ( self,
str filename )

Direct the log output to the file.

Parameters
filenamethe filename to log there. The filename may be relative path.
Returns
the logger reference

◆ endTimer()

logger coat.logger.endTimer ( self)

stop the timer and output the time into the log as amount of microseconds

Returns
the reference

◆ floatPrecission()

logger coat.logger.floatPrecission ( self,
int signs = 2 )

set the precission of floating-point output

Returns
the reference

◆ flush()

logger coat.logger.flush ( self)

save all acumulated text to the file

Returns
the chain reference

◆ getFullPath()

any coat.logger.getFullPath ( self)

Returns the absolute path to the log file.

Returns
the absolute path even if you passed the relative path.

◆ newline()

logger coat.logger.newline ( self)

start newline in the text file

Returns
the chain reference

◆ open()

coat.logger.open ( self)

open the accumulated log in the default text editor

◆ showMessage()

coat.logger.showMessage ( self)

show the accumulated log in the message box

◆ startTimer()

logger coat.logger.startTimer ( self)

start the timer to profile some operation

Returns
the reference

◆ timestamp()

logger coat.logger.timestamp ( self)

add the timestamp to the log as the

Returns
the reference

The documentation for this class was generated from the following file: