logger

package module
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 20, 2020 License: MIT Imports: 3 Imported by: 0

README

WIP: RoadRunner Application Logging Service

Logging service for RoadRunner exposing RPC method(s) to integrate with RoadRunner logging facilities. It aims to simplify logging in PHP applications, letting RoadRunner handle everything.

PHP

composer require eplightning/roadrunner-logger

PHP composer package includes simple helper class for making RPC calls to RR service. PSR-3 spec is also implemented allowing simple integration with existing logging libraries - such as Monolog.

RoadRunner Service

WIP, need docs

TODO

  • Monolog handler (not really needed since Monolog's PsrHandler exists)
  • Option to log application stderr without enabling debug mode in RR - might be useful for catching fatal PHP errors (OOM?) without all the extra debug logging
  • Docs and tests

Documentation

Index

Constants

View Source
const ID = "logger"

Variables

This section is empty.

Functions

This section is empty.

Types

type LogLine

type LogLine struct {
	Level     string
	Message   string
	Timestamp time.Time
	Fields    map[string]interface{}
}

type Service

type Service struct {
}

func (*Service) Init

func (s *Service) Init(r *rpc.Service, l *logrus.Logger) (bool, error)

Directories

Path Synopsis
cmd
rr

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL