Versions in this module Expand all Collapse all v1 v1.0.2 Nov 7, 2022 v1.0.1 Nov 7, 2022 Changes in this version + const DEBUG + const ERROR + const FATAL + const FieldAcceptListType + const FieldActivityID + const FieldActivityType + const FieldActorID + const FieldAdditions + const FieldAddress + const FieldAge + const FieldAnchorCID + const FieldAnchorEventURI + const FieldAnchorHash + const FieldAnchorLink + const FieldAnchorLinkset + const FieldAnchorOrigin + const FieldAnchorOriginEndpoint + const FieldAnchorString + const FieldAnchorURI + const FieldAnchorURIs + const FieldAttributedTo + const FieldAuthToken + const FieldAuthTokens + const FieldBackoff + const FieldCASData + const FieldCID + const FieldCIDVersion + const FieldCacheExpiration + const FieldCanonicalRef + const FieldConfig + const FieldCoreIndex + const FieldCreatedTime + const FieldCurrent + const FieldDID + const FieldData + const FieldDeletions + const FieldDeliveryAttempts + const FieldDeliveryDelay + const FieldDomain + const FieldDuration + const FieldFromIndex + const FieldGenesisTime + const FieldHRef + const FieldHTTPMethod + const FieldHTTPStatus + const FieldHash + const FieldHashlink + const FieldID + const FieldIndex + const FieldIssuer + const FieldJRD + const FieldKey + const FieldKeyID + const FieldKeyOwner + const FieldKeyType + const FieldLink + const FieldLinks + const FieldLocalHashlink + const FieldLogMonitor + const FieldLogMonitors + const FieldLogURL + const FieldMaxRetries + const FieldMaxSize + const FieldMaxTime + const FieldMessageID + const FieldMetadata + const FieldMinAge + const FieldMinimum + const FieldMultihash + const FieldNamespace + const FieldNext + const FieldObjectIRI + const FieldOperation + const FieldOperationID + const FieldOperationType + const FieldOriginActorID + const FieldParameter + const FieldParameters + const FieldParent + const FieldParents + const FieldPermitHolder + const FieldProof + const FieldProperty + const FieldQuery + const FieldReferenceIRI + const FieldReferenceType + const FieldRequestBody + const FieldRequestHeaders + const FieldRequestURL + const FieldResolutionEndpoints + const FieldResolutionModel + const FieldResolutionResult + const FieldResolvedCID + const FieldResource + const FieldResponse + const FieldRetries + const FieldSenderURL + const FieldServiceEndpoint + const FieldServiceIRI + const FieldServiceName + const FieldSidetreeProtocol + const FieldSidetreeTxn + const FieldSize + const FieldSource + const FieldStatus + const FieldStorageName + const FieldSubscriberPoolSize + const FieldSuffix + const FieldSuffixes + const FieldTarget + const FieldTargets + const FieldTaskExpiration + const FieldTaskID + const FieldTaskMgrInstanceID + const FieldTaskMonitorInterval + const FieldTimeSinceLastUpdate + const FieldTimeout + const FieldToIndex + const FieldTopic + const FieldTotal + const FieldType + const FieldURI + const FieldURIs + const FieldURL + const FieldValue + const FieldVerifiableCredential + const FieldVerifiableCredentialID + const FieldVersion + const FieldWitnessPolicy + const FieldWitnessURI + const FieldWitnessURIs + const INFO + const PANIC + const WARNING + var DefaultEncoding = Console + func CloseIteratorError(log *Log, err error) + func CloseResponseBodyError(log *Log, err error) + func GetSpec() string + func InvalidParameterValue(log *Log, param string, err error) + func ReadRequestBodyError(log *Log, err error) + func SetDefaultLevel(level Level) + func SetLevel(module string, level Level) + func SetSpec(spec string) error + func WithAcceptListType(value string) zap.Field + func WithActivityID(value fmt.Stringer) zap.Field + func WithActivityType(value string) zap.Field + func WithActorID(value string) zap.Field + func WithActorIRI(value fmt.Stringer) zap.Field + func WithAddress(value string) zap.Field + func WithAge(value time.Duration) zap.Field + func WithAnchorCID(value string) zap.Field + func WithAnchorEventURI(value fmt.Stringer) zap.Field + func WithAnchorEventURIString(value string) zap.Field + func WithAnchorHash(value string) zap.Field + func WithAnchorLink(value []byte) zap.Field + func WithAnchorLinkset(value []byte) zap.Field + func WithAnchorOrigin(value interface{}) zap.Field + func WithAnchorOriginEndpoint(value interface{}) zap.Field + func WithAnchorString(value string) zap.Field + func WithAnchorURI(value fmt.Stringer) zap.Field + func WithAnchorURIString(value string) zap.Field + func WithAnchorURIStrings(value ...string) zap.Field + func WithAttributedTo(value string) zap.Field + func WithAuthToken(value string) zap.Field + func WithAuthTokens(value ...string) zap.Field + func WithBackoff(value time.Duration) zap.Field + func WithCASData(value []byte) zap.Field + func WithCID(value string) zap.Field + func WithCIDVersion(value int) zap.Field + func WithCacheExpiration(value time.Duration) zap.Field + func WithCanonicalRef(value string) zap.Field + func WithConfig(value interface{}) zap.Field + func WithCoreIndex(value string) zap.Field + func WithCreatedTime(value time.Time) zap.Field + func WithCurrentIRI(value fmt.Stringer) zap.Field + func WithDID(value string) zap.Field + func WithData(value []byte) zap.Field + func WithDeliveryAttempts(value int) zap.Field + func WithDeliveryDelay(value time.Duration) zap.Field + func WithDomain(value string) zap.Field + func WithDuration(value time.Duration) zap.Field + func WithError(err error) zap.Field + func WithFromIndexUint64(value uint64) zap.Field + func WithGenesisTime(value uint64) zap.Field + func WithHRef(value string) zap.Field + func WithHTTPMethod(value string) zap.Field + func WithHTTPStatus(value int) zap.Field + func WithHash(value string) zap.Field + func WithHashlink(value string) zap.Field + func WithHashlinkURI(value fmt.Stringer) zap.Field + func WithID(value string) zap.Field + func WithIndex(value int) zap.Field + func WithIndexUint64(value uint64) zap.Field + func WithIssuer(value string) zap.Field + func WithJRD(value interface{}) zap.Field + func WithKey(value string) zap.Field + func WithKeyID(value string) zap.Field + func WithKeyIRI(value fmt.Stringer) zap.Field + func WithKeyOwnerIRI(value fmt.Stringer) zap.Field + func WithKeyType(value string) zap.Field + func WithLink(value string) zap.Field + func WithLinks(value ...string) zap.Field + func WithLocalHashlink(value string) zap.Field + func WithLogMonitor(value interface{}) zap.Field + func WithLogMonitors(value interface{}) zap.Field + func WithLogURL(value fmt.Stringer) zap.Field + func WithLogURLString(value string) zap.Field + func WithMaxRetries(value int) zap.Field + func WithMaxSize(value int) zap.Field + func WithMaxSizeUInt64(value uint64) zap.Field + func WithMaxTime(value time.Duration) zap.Field + func WithMessageID(value string) zap.Field + func WithMetadata(value interface{}) zap.Field + func WithMinAge(value time.Duration) zap.Field + func WithMinimum(value int) zap.Field + func WithMultihash(value string) zap.Field + func WithNamespace(value string) zap.Field + func WithNextIRI(value fmt.Stringer) zap.Field + func WithObjectIRI(value fmt.Stringer) zap.Field + func WithOperation(value interface{}) zap.Field + func WithOperationID(value string) zap.Field + func WithOperationType(value string) zap.Field + func WithOriginActorID(value string) zap.Field + func WithParameter(value string) zap.Field + func WithParameters(value interface{}) zap.Field + func WithParent(value string) zap.Field + func WithParentURI(value fmt.Stringer) zap.Field + func WithParents(value []string) zap.Field + func WithPermitHolder(value string) zap.Field + func WithProof(value []byte) zap.Field + func WithProofDocument(value map[string]interface{}) zap.Field + func WithProperty(value string) zap.Field + func WithQuery(value interface{}) zap.Field + func WithReferenceIRI(value fmt.Stringer) zap.Field + func WithReferenceType(value string) zap.Field + func WithRequestBody(value []byte) zap.Field + func WithRequestHeaders(value http.Header) zap.Field + func WithRequestURL(value fmt.Stringer) zap.Field + func WithRequestURLString(value string) zap.Field + func WithResolutionEndpoints(value ...string) zap.Field + func WithResolutionModel(value interface{}) zap.Field + func WithResolutionResult(value interface{}) zap.Field + func WithResolvedCID(value string) zap.Field + func WithResource(value string) zap.Field + func WithResponse(value []byte) zap.Field + func WithRetries(value int) zap.Field + func WithSenderURL(value fmt.Stringer) zap.Field + func WithServiceEndpoint(value string) zap.Field + func WithServiceIRI(value fmt.Stringer) zap.Field + func WithServiceName(value string) zap.Field + func WithSidetreeProtocol(value interface{}) zap.Field + func WithSidetreeTxn(value interface{}) zap.Field + func WithSize(value int) zap.Field + func WithSizeUint64(value uint64) zap.Field + func WithSource(value string) zap.Field + func WithStatus(value string) zap.Field + func WithStoreName(value string) zap.Field + func WithSubscriberPoolSize(value int) zap.Field + func WithSuffix(value string) zap.Field + func WithSuffixes(value ...string) zap.Field + func WithTarget(value string) zap.Field + func WithTargetIRI(value fmt.Stringer) zap.Field + func WithTargetIRIs(value ...*url.URL) zap.Field + func WithTaskExpiration(value time.Duration) zap.Field + func WithTaskID(value string) zap.Field + func WithTaskMgrInstanceID(value string) zap.Field + func WithTaskMonitorInterval(value time.Duration) zap.Field + func WithTimeSinceLastUpdate(value time.Duration) zap.Field + func WithTimeout(value time.Duration) zap.Field + func WithToIndexUint64(value uint64) zap.Field + func WithTopic(value string) zap.Field + func WithTotal(value int) zap.Field + func WithType(value string) zap.Field + func WithURI(value fmt.Stringer) zap.Field + func WithURIString(value string) zap.Field + func WithURIs(value ...*url.URL) zap.Field + func WithURL(value fmt.Stringer) zap.Field + func WithURLAdditions(value ...*url.URL) zap.Field + func WithURLDeletions(value ...*url.URL) zap.Field + func WithURLString(value string) zap.Field + func WithValue(value interface{}) zap.Field + func WithVerifiableCredential(value []byte) zap.Field + func WithVerifiableCredentialID(value string) zap.Field + func WithVersion(value string) zap.Field + func WithWitnessPolicy(value string) zap.Field + func WithWitnessURI(value fmt.Stringer) zap.Field + func WithWitnessURIString(value string) zap.Field + func WithWitnessURIStrings(value ...string) zap.Field + func WithWitnessURIs(value ...*url.URL) zap.Field + func WriteResponseBodyError(log *Log, err error) + func WroteResponse(log *Log, data []byte) + type Encoding = string + const Console + const JSON + type Level int + func GetLevel(module string) Level + func ParseLevel(level string) (Level, error) + func (l Level) String() string + type Log struct + func New(module string, opts ...Option) *Log + func (l *Log) IsEnabled(level Level) bool + type ObjectMarshaller struct + func NewObjectMarshaller(key string, obj interface{}) *ObjectMarshaller + func (m *ObjectMarshaller) MarshalLogObject(e zapcore.ObjectEncoder) error + type Option func(o *options) + func WithEncoding(encoding Encoding) Option + func WithFields(fields ...zap.Field) Option + func WithStdErr(stdErr zapcore.WriteSyncer) Option + func WithStdOut(stdOut zapcore.WriteSyncer) Option + type StringArrayMarshaller struct + func NewStringArrayMarshaller(values []string) *StringArrayMarshaller + func (m *StringArrayMarshaller) MarshalLogArray(e zapcore.ArrayEncoder) error + type URLArrayMarshaller struct + func NewURLArrayMarshaller(urls []*url.URL) *URLArrayMarshaller + func (m *URLArrayMarshaller) MarshalLogArray(e zapcore.ArrayEncoder) error