#NEWLINE# def _logline( self , message ) : #NEWLINE# #INDENT# log_line = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# t = time . time ( ) #NEWLINE# print_tm = dt . datetime . fromtimestamp ( t ) . strftime ( '%Y-%m-%d %H:%M:%S' ) #NEWLINE# log_line [ '@timestamp' ] = print_tm #NEWLINE# log_line [ 'project_id' ] = self . ctxt . tenant #NEWLINE# log_line [ 'stage_id' ] = self . assem . uuid #NEWLINE# log_line [ 'task' ] = self . stage #NEWLINE# log_line [ 'message' ] = message #NEWLINE# return json . dumps ( log_line )