Skip to content

Introduce gp-log-helper for support and platform

Created by: mallardduck

Should be ready for merge and suitable for use with GP-CLI stuff. Between this script and it's logger companion we should be able to even use it for site level things we are logging to various site logs.

Here are some example use cases:

Site specific logging

Almost everything in the gp site space could have it's echo into the site log changed to gridpane-logger.sh -t {domain} -p {script}. Then we could add log levels as required to be extra strict with how we do things. We'd leave these types of commands with their pipes into traditional logs - these would essentially be for customer access via SFTP now, as internally we'd use the log grabbing script.

Grabbing these logs as an admin could be: gridpane-log-helper.sh -t example.com -p sso -n 250

Fix tools

These could get a similar but semi flipped treatment as described above. So instead we'd see the echo here replaced with: gridpane-logger.sh -t gp-fixes -p {fix ran}:{domain}.

So getting all fixes: gridpane-log-helper.sh -t gp-fixes -n 250

Or only a single sites fixes: gridpane-log-helper.sh -t gp-fixes -f {domian} -n 250

See next comment for full output of help...

Merge request reports

Loading