dubstar-04 / LibLathe

Python library for generating lathe paths and gcode
GNU General Public License v2.0
32 stars 8 forks source link

Add ability to log to file #132

Open dubstar-04 opened 3 years ago

dubstar-04 commented 3 years ago

create a logging module to allow a consistent method to write to a logfile or print debug information

add human unstandable output such as 'Line Element', 'Clockwise Arc' and map the flow through each function:

from inspect import getframeinfo, stack

def debuginfo(message): caller = getframeinfo(stack()[1][0]) print "%s - %s - lineno %d: %s" % (caller.filename, caller.function, caller.lineno, message)

[filename.py - functionname- lineno xx: message]