<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def log_error(msg, logger="TaskLogger"):
 """Log an ERROR message Convenience function to log a message to the default Logger Parameters msg : str Message to be logged logger : str, optional (default: "TaskLogger") Unique name of the logger to retrieve Returns ------- logger : TaskLogger """

    tasklogger = get_tasklogger(logger)
    tasklogger.error(msg)
    return tasklogger