import datetime
import getpass

def logError(): # You need to accept the arguments passed
    # Open the file
    with open ("logit.txt")
    # Write to the file
    # Close the file

if __name__ == '__main__':
    # Obtain the username. 
    '''
    You will need to research this.   
    Consider importing the getpass module, this will allow you to
    capture the username.
    ''' 

    # Obtain the user issue

    # Obtain the current date and time

    # Format the current date and time

    # Pass the required information to the logError function

import datetime

def logError(): # You need to accept the arguments passed
    # Open the file

    # Write to the file

    # Close the file

if __name__ == '__main__':
    # Obtain the username. 
    '''
    You will need to research this.   
    Consider importing the getpass module, this will allow you to
    capture the username.
    ''' 

    # Obtain the user issue
    # Obtain the current date and time
    # Format the current date and time
    # Pass the required information to the logError function
