shoutrrr: github.com/containrrr/shoutrrr/pkg/services/logger Index | Files

package logger

import "github.com/containrrr/shoutrrr/pkg/services/logger"

Index

Package Files

logger.go logger_config.go

Constants

const (
    // Scheme is the identifying part of this service's configuration URL
    Scheme = "logger"
)

type Config Uses

type Config struct {
    standard.QuerylessConfig
    standard.EnumlessConfig
}

Config is the configuration object for the Logger Service

func (*Config) GetURL Uses

func (config *Config) GetURL() *url.URL

GetURL returns a URL representation of it's current field values

func (*Config) SetURL Uses

func (config *Config) SetURL(url *url.URL) error

SetURL updates a ServiceConfig from a URL representation of it's field values

type Service Uses

type Service struct {
    standard.Standard
    // contains filtered or unexported fields
}

Service is the Logger service struct

func (*Service) Initialize Uses

func (service *Service) Initialize(configURL *url.URL, logger *log.Logger) error

Initialize loads ServiceConfig from configURL and sets logger for this Service

func (*Service) Send Uses

func (service *Service) Send(message string, params *types.Params) error

Send a notification message to log

Package logger imports 6 packages (graph) and is imported by 1 packages. Updated 2019-08-02. Refresh now. Tools for package owners.