forked from LeenkxTeam/LNXSDK
		
	
		
			
				
	
	
		
			22 lines
		
	
	
		
			468 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			468 B
		
	
	
	
		
			Python
		
	
	
	
	
	
import bpy
 | 
						|
import datetime
 | 
						|
 | 
						|
class TLM_Logman:
 | 
						|
 | 
						|
    _log = []
 | 
						|
 | 
						|
    def __init__(self, *args, **kwargs):
 | 
						|
        super(TLM_Logman, self).__init__(*args, **kwargs)
 | 
						|
        print("Logger started Init")
 | 
						|
        self.append("Logger started.")
 | 
						|
 | 
						|
    def append(self, appended):
 | 
						|
        self._log.append(str(datetime.datetime.now()) + ": " + str(appended))
 | 
						|
 | 
						|
    #TODO!
 | 
						|
    def stats():
 | 
						|
        pass
 | 
						|
 | 
						|
    def dumpLog(self):
 | 
						|
        for line in self._log:
 | 
						|
            print(line) |