
import sys
# sys.path.append('./mod/')
# sys.path.append('.\\mod\\')
sys.path.insert(0, './mod')
import fileHandler
import Logger as audit
import random
# import logging

# FORMAT = '[%(levelname)s]%(asctime)s: %(message)s'
# logging.basicConfig(filename="./logs/samplelogs.log", level=logging.INFO, format=FORMAT)


# print(sys.path)


audit.setup_logging("./logs/")
audit.logging.debug(sys.path)

print('_' * 50)
print('')
print("Testing Custom Module Design")
#print('\n' * 2)
print('_' * 50)

fileHandler.ShowFile('README.md')

#strFileContent = fileHandler.LoadFile()
# print(strFileContent)

#fileHandler.CreateFile("File1.txt","My sample text\nand some more text")
#fileHandler.AppendFile("File1.txt","\nThis is new text appended to the file\nand some more text")


#MySearchResults = fileHandler.SearchFile("LICENSE","public")
# print(MySearchResults)

MySearchResults = fileHandler.SearchFile("File1.txt", "and")
# print(MySearchResults)
audit.logging.info(MySearchResults)

# fileHandler.DeleteFile("File1.txt")

fileHandler.LoadCSV("test.csv")

audit.logging.error("whoops")

audit.logging.warning("dont dare")

audit.logging.critical("Oh Christ!")

try:
    x = 10
    y = 0
    Res = x / y
# except ZeroDivisionError:
except Exception:
    audit.logging.exception("This is used in try catch scenarios!")



5f5dc6019cfd482065f224f5cd7669a0aab20ae1
<mask token>

<mask token>
sys.path.insert(0, './mod')
<mask token>
audit.setup_logging('./logs/')
audit.logging.debug(sys.path)
print('_' * 50)
print('')
print('Testing Custom Module Design')
print('_' * 50)
fileHandler.ShowFile('README.md')
<mask token>
audit.logging.info(MySearchResults)
fileHandler.LoadCSV('test.csv')
audit.logging.error('whoops')
audit.logging.warning('dont dare')
audit.logging.critical('Oh Christ!')
try:
    x = 10
    y = 0
    Res = x / y
except Exception:
    audit.logging.exception('This is used in try catch scenarios!')

<mask token>
sys.path.insert(0, './mod')
<mask token>
audit.setup_logging('./logs/')
audit.logging.debug(sys.path)
print('_' * 50)
print('')
print('Testing Custom Module Design')
print('_' * 50)
fileHandler.ShowFile('README.md')
MySearchResults = fileHandler.SearchFile('File1.txt', 'and')
audit.logging.info(MySearchResults)
fileHandler.LoadCSV('test.csv')
audit.logging.error('whoops')
audit.logging.warning('dont dare')
audit.logging.critical('Oh Christ!')
try:
    x = 10
    y = 0
    Res = x / y
except Exception:
    audit.logging.exception('This is used in try catch scenarios!')

import sys
sys.path.insert(0, './mod')
import fileHandler
import Logger as audit
import random
audit.setup_logging('./logs/')
audit.logging.debug(sys.path)
print('_' * 50)
print('')
print('Testing Custom Module Design')
print('_' * 50)
fileHandler.ShowFile('README.md')
MySearchResults = fileHandler.SearchFile('File1.txt', 'and')
audit.logging.info(MySearchResults)
fileHandler.LoadCSV('test.csv')
audit.logging.error('whoops')
audit.logging.warning('dont dare')
audit.logging.critical('Oh Christ!')
try:
    x = 10
    y = 0
    Res = x / y
except Exception:
    audit.logging.exception('This is used in try catch scenarios!')


import sys
# sys.path.append('./mod/')
# sys.path.append('.\\mod\\')
sys.path.insert(0, './mod')
import fileHandler
import Logger as audit
import random
# import logging

# FORMAT = '[%(levelname)s]%(asctime)s: %(message)s'
# logging.basicConfig(filename="./logs/samplelogs.log", level=logging.INFO, format=FORMAT)


# print(sys.path)


audit.setup_logging("./logs/")
audit.logging.debug(sys.path)

print('_' * 50)
print('')
print("Testing Custom Module Design")
#print('\n' * 2)
print('_' * 50)

fileHandler.ShowFile('README.md')

#strFileContent = fileHandler.LoadFile()
# print(strFileContent)

#fileHandler.CreateFile("File1.txt","My sample text\nand some more text")
#fileHandler.AppendFile("File1.txt","\nThis is new text appended to the file\nand some more text")


#MySearchResults = fileHandler.SearchFile("LICENSE","public")
# print(MySearchResults)

MySearchResults = fileHandler.SearchFile("File1.txt", "and")
# print(MySearchResults)
audit.logging.info(MySearchResults)

# fileHandler.DeleteFile("File1.txt")

fileHandler.LoadCSV("test.csv")

audit.logging.error("whoops")

audit.logging.warning("dont dare")

audit.logging.critical("Oh Christ!")

try:
    x = 10
    y = 0
    Res = x / y
# except ZeroDivisionError:
except Exception:
    audit.logging.exception("This is used in try catch scenarios!")


