logres

command module
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2017 License: BSD-3-Clause Imports: 19 Imported by: 0

README

Distributed logs system PostgresSQL to MongoDB

Go Report Card

Installation
go get github.com/luk4z7/logres
Configuration

configure your postgres for work with logs type csv

vim /etc/postgresql/9.2/main/postgresql.conf

like this:

#------------------------------------------------------------------------------
# ERROR REPORTING AND LOGGING
#------------------------------------------------------------------------------

# - Where to Log -

log_destination = 'csvlog'              # Valid values are combinations of
# stderr, csvlog, syslog, and eventlog,
# depending on platform.  csvlog
# requires logging_collector to be on.

# This is used when logging to stderr:
logging_collector = on                  # Enable capturing of stderr and csvlog
# into log files. Required to be on for
# csvlogs.
# (change requires restart)

if do you like prefer change the directive log_statement for log all type of query, errors, warning, etc ...

log_statement = 'all'                 # none, ddl, mod, all

Restart your postgresql

/etc/init.d/postgresql restart

Configure your environment

logres --config

and then execute the --run

logres --run

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
drive
mongo
Package mongo provide drive for connections on mongo client and production
Package mongo provide drive for connections on mongo client and production
lib
error
Package error helpers
Package error helpers
logs
Package logs return instance of gocolorize
Package logs return instance of gocolorize
standard
Package standard provide helpers methods
Package standard provide helpers methods
service
config
Package config provide configurations for connections on databases
Package config provide configurations for connections on databases
logger
Package logger is a layer with methods for persistence and operations with data
Package logger is a layer with methods for persistence and operations with data
model
Package model is a layer with struct for data model Package model is a layer with struct for data model
Package model is a layer with struct for data model Package model is a layer with struct for data model

Jump to

Keyboard shortcuts

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