-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge Log Level API work into the next branch (#57)
Signed-off-by: Edwin Buck <[email protected]>
- Loading branch information
Showing
9 changed files
with
1,306 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
syntax = "proto3"; | ||
package spire.api.agent.logger.v1; | ||
option go_package = "github.com/spiffe/spire-api-sdk/proto/spire/api/agent/logger/v1;loggerv1"; | ||
|
||
import "spire/api/types/logger.proto"; | ||
|
||
service Logger { | ||
|
||
// Gets the logger level. | ||
// | ||
// This message is intended for the Agent Admin Socket. | ||
rpc GetLogger(GetLoggerRequest) returns (spire.api.types.Logger); | ||
|
||
// Sets the logger to a specified log level. | ||
// | ||
// This message is intended for the Agent Admin Socket. | ||
rpc SetLogLevel(SetLogLevelRequest) returns (spire.api.types.Logger); | ||
|
||
// Resets the logger level to the level configured at launch. | ||
// | ||
// This message is intended for the Agent Admin Socket. | ||
rpc ResetLogLevel(ResetLogLevelRequest) returns (spire.api.types.Logger); | ||
|
||
} | ||
|
||
// Empty Get Logger Request message for future extension | ||
message GetLoggerRequest { | ||
} | ||
|
||
// Set Log Level Request message | ||
message SetLogLevelRequest { | ||
|
||
// The new level the logger should assume | ||
spire.api.types.LogLevel new_level = 1; | ||
} | ||
|
||
// Empty Reset Log Level Request message for future extension | ||
message ResetLogLevelRequest { | ||
} | ||
|
Oops, something went wrong.