6from datetime
import datetime
15 current_timestamp = datetime.now()
16 return current_timestamp.strftime(
"%m/%d/%Y %I:%M:%S %p")
28 timestamp = LoggerHelpers._GetTimeStamp()
29 return "{} [{}] {}".format(timestamp, logLevel, msg)
Helper functions for all loggers.
str _GetTimeStamp()
Return a regular time stamp of the current time in local time.
str FormatLogLine(str logLevel, str msg)
Format a line for logging, including time stamp.