{"modulePath":"github.com/rigup/ephemeral-iam","version":"v0.0.15","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package main\n\n## Variables\n\n```go\nvar (\n\n\t// Plugin does not need to include a RunE field\n\tPlugin = \u0026eiamplugin.EphemeralIamPlugin{\n\t\tCommand: \u0026cobra.Command{\n\t\t\tUse:   \"plugin-with-formatted-logging\",\n\t\t\tShort: \"This plugin uses the eiam logging format\",\n\t\t\tRunE: func(cmd *cobra.Command, args []string) error {\n\t\t\t\tlogger.Trace(\"This is a trace level log and will only be printed when the user sets 'logging.level' to 'trace'.\")\n\t\t\t\tlogger.Debug(\"This is a debug level log and will only be printed when the user sets 'logging.level' to 'trace' or 'debug'.\")\n\t\t\t\tlogger.Info(\"This is an info level log. This is the default configured log level.\")\n\t\t\t\tlogger.Warn(\"This is a warn level log.\")\n\t\t\t\tlogger.Error(\"This is an error level log. This is the highest level of log that will not halt execution.\")\n\t\t\t\tlogger.WithError(errors.New(\"something happened\")).Error(\"You can use 'WithError' to print errors with messages.\")\n\t\t\t\tlogger.Fatal(\"This is a fatal level log. This is halt execution.\")\n\t\t\t\tlogger.Panic(\"This is a panic level log. This won't be printed because the Fatal log will stop the command.\")\n\t\t\t\treturn nil\n\t\t\t},\n\t\t},\n\t\tName:    \"Output logging example\",\n\t\tDesc:    \"Plugin demonstrating how to use the eiam logger\",\n\t\tVersion: \"v0.0.1\",\n\t}\n)\n```\n\n","path":"github.com/rigup/ephemeral-iam/docs/plugins/plugin_dev/examples/output_logging","name":"main","synopsis":"","isRedistributable":true}
