From f98bfb34f3216f4e468f8aadc7f1f86fc50ea657 Mon Sep 17 00:00:00 2001 From: Richard Mwewa <74001397+rly0nheart@users.noreply.github.com> Date: Sat, 2 Jul 2022 21:57:53 +0200 Subject: [PATCH] Update log_roller.py --- octosuite/log_roller.py | 44 +++++++++++++++++++++-------------------- 1 file changed, 23 insertions(+), 21 deletions(-) diff --git a/octosuite/log_roller.py b/octosuite/log_roller.py index 14d6793..b60a73e 100644 --- a/octosuite/log_roller.py +++ b/octosuite/log_roller.py @@ -1,25 +1,27 @@ -''' +""" 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: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) ' + Ctrl = "Session terminated with {}." + Error = "An error occurred: {}" + sessionOpened = "Opened new session on {}:{}" + sessionClosed = "Session closed at {}." + viewingLogs = "Viewing logs..." + viewingCsv = "Viewing CSV file(s)..." + deletedLog = "Deleted log -> {}" + readingLog = "Reading log -> {}" + readingCsv = 'Reading csv -> {}' + deletedCsv = 'Deleted csv -> {}' + fileDownloading = "Downloading -> {}..." + fileDownloaded = "Downloaded -> downloads/{}" + 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 -> ({})" + loggingSkipped = "Logging skipped -> ({})" + limitInput = "Limit '{}' output to how many? (1-100) "