parameters: (self, path="./log_file", hourInterval=24, megabyteLimit=1024)
docstring: Args:
              path: a full or partial path with file name.
              hourInterval: the number of hours at which to rotate the file.
              megabyteLimit: the number of megabytes of file size the log may
                  grow to, after which the log is rotated.  Note: The log file
                  may get a bit larger than limit do to writing out whole lines
                  (last line may exceed megabyteLimit or "megabyteGuidline").
docstring_summary: Args:
              path: a full or partial path with file name.
              hourInterval: the number of hours at which to rotate the file.
              megabyteLimit: the number of megabytes of file size the log may
                  grow to, after which the log is rotated.  Note: The log file
                  may get a bit larger than limit do to writing out whole lines
                  (last line may exceed megabyteLimit or "megabyteGuidline").
docstring_tokens: Args : path : a full or partial path with file name . hourInterval : the number of hours at which to rotate the file . megabyteLimit : the number of megabytes of file size the log may grow to after which the log is rotated . Note : The log file may get a bit larger than limit do to writing out whole lines ( last line may exceed megabyteLimit or megabyteGuidline ) .
function: def __init__(self, path="./log_file", hourInterval=24, megabyteLimit=1024):
          """
          Args:
              path: a full or partial path with file name.
              hourInterval: the number of hours at which to rotate the file.
              megabyteLimit: the number of megabytes of file size the log may
                  grow to, after which the log is rotated.  Note: The log file
                  may get a bit larger than limit do to writing out whole lines
                  (last line may exceed megabyteLimit or "megabyteGuidline").
          """
          self.path = path
          self.timeInterval = None
          self.timeLimit = None
          self.sizeLimit = None
          if hourInterval is not None:
              self.timeInterval = hourInterval*60*60
              self.timeLimit = time.time()+self.timeInterval
          if megabyteLimit is not None:
              self.sizeLimit = megabyteLimit*1024*1024
function_tokens: def __init__ ( self , path = "./log_file" , hourInterval = 24 , megabyteLimit = 1024 ) : self . path = path self . timeInterval = None self . timeLimit = None self . sizeLimit = None if hourInterval is not None : self . timeInterval = hourInterval * 60 * 60 self . timeLimit = time . time ( ) + self . timeInterval if megabyteLimit is not None : self . sizeLimit = megabyteLimit * 1024 * 1024