mirror of
https://github.com/sonr-io/sonr.git
synced 2026-08-03 18:01:39 +00:00
- **refactor: refactor DID module types and move to controller package** - **refactor: move controller creation and resolution logic to keeper** - **refactor: update imports to reflect controller package move** - **refactor: update protobuf definitions for DID module** - **docs: update proto README to reflect changes** - **refactor: move hway to gateway, update node modules, and refactor pkl generation** - **build: update pkl-gen task to use new pkl file paths** - **refactor: refactor DWN WASM build and deployment process** - **refactor: refactor DID controller implementation to use account-based storage** - **refactor: move DID controller interface to base file and update implementation** - **chore: migrate to google protobuf** - **feat: Add v0.52.0 Interfaces for Acc Abstraction** - **refactor: replace public_key with public_key_hex in Assertion message** - **refactor: remove unused PubKey, JSONWebKey, and RawKey message types and related code**
30 lines
1.1 KiB
Go
30 lines
1.1 KiB
Go
package log
|
|
|
|
const ModuleKey = "module"
|
|
|
|
// Logger defines basic logger functionality that all previous versions of the Logger interface should
|
|
// support. Library users should prefer to use this interface when possible, then type case to Logger
|
|
// to see if WithContext is supported.
|
|
type Logger interface {
|
|
// Info takes a message and a set of key/value pairs and logs with level INFO.
|
|
// The key of the tuple must be a string.
|
|
Info(msg string, keyVals ...any)
|
|
|
|
// Warn takes a message and a set of key/value pairs and logs with level WARN.
|
|
// The key of the tuple must be a string.
|
|
Warn(msg string, keyVals ...any)
|
|
|
|
// Error takes a message and a set of key/value pairs and logs with level ERR.
|
|
// The key of the tuple must be a string.
|
|
Error(msg string, keyVals ...any)
|
|
|
|
// Debug takes a message and a set of key/value pairs and logs with level DEBUG.
|
|
// The key of the tuple must be a string.
|
|
Debug(msg string, keyVals ...any)
|
|
|
|
// Impl returns the underlying logger implementation.
|
|
// It is used to access the full functionalities of the underlying logger.
|
|
// Advanced users can type cast the returned value to the actual logger.
|
|
Impl() any
|
|
}
|