*fixed logPath reference and write method for command line logger