#NEWLINE# def mark_log( self , filename = 'system.log' ) : #NEWLINE# #INDENT# '\n        Returns "a mark" to the current position of this node Cassandra log.\n        This is for use with the from_mark parameter of watch_log_for_* methods,\n        allowing to watch the log from the position when this method was called.\n        ' #NEWLINE# log_file = os . path . join ( self . get_path ( ) , 'logs' , filename ) #NEWLINE# if ( not os . path . exists ( log_file ) ) : #NEWLINE# #INDENT# return 0 #NEWLINE# #UNINDENT# with open ( log_file ) as f : #NEWLINE# #INDENT# f . seek ( 0 , os . SEEK_END ) #NEWLINE# return f . tell ( )