UNPKG

cloud-pine

Version:

Pino Transport abstraction for Google Cloud Logging.

22 lines (18 loc) 1.48 kB
Cloud Pine Forward pino logs to  Google Cloud Logging: cat log | cloud-pine --projectid someprojectid -l something=else -l service=http Flags -h | --help Display Help -v | --version Display Version -n | --name Log Name. Default to Cloud_Pine -s | --sync Cloud Logging Mode. Sync will print to stdout meanwhile async will forward logs to Cloud Logging -p | --projectid Google Cloud Project ID. Default to automatic detected resource or GOOGLE_APPLICATION_CREDENTIALS -k | --key Path to key file -l | --labels Custom labels to be attached to the logging labels. Should be in the format label=value. Can be used one or more times. -r | --resource Monitoring Resource type. Default to global or Monitored Resource detected. -rs | --resource-labels Monitoring Resource#Labels that will be attached to the resource by default. Follows same pattern as --labels. -i | --skip-init Skips identification of monitored resource, which will infer things like project-ide. and Monitored Resource settings. Default to false.