From 2a025190bd0abc105d4c8bf1b53acf0ac248a194 Mon Sep 17 00:00:00 2001 From: Richard Mwewa <74001397+rly0nheart@users.noreply.github.com> Date: Thu, 23 Jun 2022 12:30:21 +0200 Subject: [PATCH] Create log_roller.py --- octosuite/log_roller.py | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 octosuite/log_roller.py diff --git a/octosuite/log_roller.py b/octosuite/log_roller.py new file mode 100644 index 0000000..3fb72de --- /dev/null +++ b/octosuite/log_roller.py @@ -0,0 +1,25 @@ +''' +logRoller +This class is where the main notification strings/messages are held, +and are being used in two different cases (they're beig used by logging to be written to log files, and being printed out to the screen). +''' +class logRoller: + Ctrl = 'Session terminated with {}.' + Error = 'An error occurred: {}' + sessionOpened = 'Opened new session on {}:{}' + sessionClosed = 'Session closed at {}.' + deletedLog = 'Deleted log: {}' + readingLog = 'Reading log: {}' + viewingLogs = 'Viewing logs...' + fileDownloading = 'Downloading ({})...' + fileDownloaded = 'Downloaded. Saved to downloads/{}' + fileNotFound = 'File ({}) not found.' + infoNotFound = 'Information ({} - {} - {}) not found.' + repoNotFound = 'Repository ({}) not found.' + userNotFound = 'User (@{}) not found.' + orgNotFound = 'Organization (@{}) not found.' + repoOrUserNotFound = 'Repository or user not found ({} - @{}).' + askLogCsv = 'Do you wish to log this output to a .csv file? (Y/n) ' + loggedToCsv = 'Output logged to {}' + loggingSkipped = '.csv logging skipped.' + limitInput = ' Limit {} output to how many? (1-100) '