From a16a4d344adb3c6ae9327d5187e3ab11a05a2f4e Mon Sep 17 00:00:00 2001 From: Tom Whiston Date: Sun, 18 Dec 2016 00:15:26 +0100 Subject: [PATCH] Db poll (#51) * added config validate translation strings * db poll and debug translations, see https://github.com/hechoendrupal/DrupalConsole/pull/3002 --- translations/database.log.common.yml | 12 ++++++++++++ translations/database.log.debug.yml | 12 +----------- translations/database.log.poll.yml | 9 +++++++++ 3 files changed, 22 insertions(+), 11 deletions(-) create mode 100644 translations/database.log.common.yml create mode 100644 translations/database.log.poll.yml diff --git a/translations/database.log.common.yml b/translations/database.log.common.yml new file mode 100644 index 0000000..93ca8c9 --- /dev/null +++ b/translations/database.log.common.yml @@ -0,0 +1,12 @@ +options: + type: 'Filter events by a specific type' + severity: 'Filter events by a specific level of severity' + user-id: 'Filter events by a specific user id' +messages: + event-id: 'Event ID' + type: Type + date: Date + message: Message + user: User + severity: Severity + invalid-severity: 'Severity type is invalid, filter was ignored' diff --git a/translations/database.log.debug.yml b/translations/database.log.debug.yml index bd2aab9..5115504 100644 --- a/translations/database.log.debug.yml +++ b/translations/database.log.debug.yml @@ -2,19 +2,9 @@ description: 'Display current log events for the application' arguments: event-id: 'DBLog event ID' options: - type: 'Filter events by a specific type' - severity: 'Filter events by a specific level of severity' - user-id: 'Filter events by a specific user id' asc: 'List events in ascending order' limit: 'Limit results to a specific number' offset: 'Starting point of a limit' - asc: 'List events in ascending order' + yml: 'Print in a yml style' messages: - event-id: 'Event ID' - type: Type - date: Date - message: Message - user: User - severity: Severity - invalid-severity: 'Severity type is invalid, filter was ignored' not-found: 'DBLog event "%s" wasn''t found' diff --git a/translations/database.log.poll.yml b/translations/database.log.poll.yml new file mode 100644 index 0000000..a5b14a5 --- /dev/null +++ b/translations/database.log.poll.yml @@ -0,0 +1,9 @@ +description: 'Poll the watchdog and print new log entries every x seconds' +arguments: + duration: 'Duration in seconds which to sleep between database reads' +messages: + warning: | + Do not use in production environments + As this script blocks you are advised to only run it on vm's with multiple cores for performance reasons + Stop this polling mechanism before you clean/truncate the watchdog table! + Quit with ^C \ No newline at end of file