go2hx

manual

github

Module: stdgo.log.syslog

(view library index)

Overview

Index

Constants

import stdgo.log.syslog.Syslog
final log_ALERT:stdgo._internal.log.syslog.Priority = stdgo._internal.log.syslog.Syslog_log_ALERT.log_ALERT
final log_AUTH:stdgo._internal.log.syslog.Priority = stdgo._internal.log.syslog.Syslog_log_AUTH.log_AUTH
final log_AUTHPRIV:stdgo._internal.log.syslog.Priority = stdgo._internal.log.syslog.Syslog_log_AUTHPRIV.log_AUTHPRIV
final log_CRIT:stdgo._internal.log.syslog.Priority = stdgo._internal.log.syslog.Syslog_log_CRIT.log_CRIT
final log_CRON:stdgo._internal.log.syslog.Priority = stdgo._internal.log.syslog.Syslog_log_CRON.log_CRON
final log_DAEMON:stdgo._internal.log.syslog.Priority = stdgo._internal.log.syslog.Syslog_log_DAEMON.log_DAEMON
final log_DEBUG:stdgo._internal.log.syslog.Priority = stdgo._internal.log.syslog.Syslog_log_DEBUG.log_DEBUG
final log_EMERG:stdgo.log.syslog.Priority = stdgo._internal.log.syslog.Syslog_log_EMERG.log_EMERG
final log_ERR:stdgo._internal.log.syslog.Priority = stdgo._internal.log.syslog.Syslog_log_ERR.log_ERR
final log_FTP:stdgo._internal.log.syslog.Priority = stdgo._internal.log.syslog.Syslog_log_FTP.log_FTP
final log_INFO:stdgo._internal.log.syslog.Priority = stdgo._internal.log.syslog.Syslog_log_INFO.log_INFO
final log_KERN:stdgo.log.syslog.Priority = stdgo._internal.log.syslog.Syslog_log_KERN.log_KERN
final log_LOCAL0:stdgo._internal.log.syslog.Priority = stdgo._internal.log.syslog.Syslog_log_LOCAL0.log_LOCAL0
final log_LOCAL1:stdgo._internal.log.syslog.Priority = stdgo._internal.log.syslog.Syslog_log_LOCAL1.log_LOCAL1
final log_LOCAL2:stdgo._internal.log.syslog.Priority = stdgo._internal.log.syslog.Syslog_log_LOCAL2.log_LOCAL2
final log_LOCAL3:stdgo._internal.log.syslog.Priority = stdgo._internal.log.syslog.Syslog_log_LOCAL3.log_LOCAL3
final log_LOCAL4:stdgo._internal.log.syslog.Priority = stdgo._internal.log.syslog.Syslog_log_LOCAL4.log_LOCAL4
final log_LOCAL5:stdgo._internal.log.syslog.Priority = stdgo._internal.log.syslog.Syslog_log_LOCAL5.log_LOCAL5
final log_LOCAL6:stdgo._internal.log.syslog.Priority = stdgo._internal.log.syslog.Syslog_log_LOCAL6.log_LOCAL6
final log_LOCAL7:stdgo._internal.log.syslog.Priority = stdgo._internal.log.syslog.Syslog_log_LOCAL7.log_LOCAL7
final log_LPR:stdgo._internal.log.syslog.Priority = stdgo._internal.log.syslog.Syslog_log_LPR.log_LPR
final log_MAIL:stdgo._internal.log.syslog.Priority = stdgo._internal.log.syslog.Syslog_log_MAIL.log_MAIL
final log_NEWS:stdgo._internal.log.syslog.Priority = stdgo._internal.log.syslog.Syslog_log_NEWS.log_NEWS
final log_NOTICE:stdgo._internal.log.syslog.Priority = stdgo._internal.log.syslog.Syslog_log_NOTICE.log_NOTICE
final log_SYSLOG:stdgo._internal.log.syslog.Priority = stdgo._internal.log.syslog.Syslog_log_SYSLOG.log_SYSLOG
final log_USER:stdgo._internal.log.syslog.Priority = stdgo._internal.log.syslog.Syslog_log_USER.log_USER
final log_UUCP:stdgo._internal.log.syslog.Priority = stdgo._internal.log.syslog.Syslog_log_UUCP.log_UUCP
final log_WARNING:stdgo._internal.log.syslog.Priority = stdgo._internal.log.syslog.Syslog_log_WARNING.log_WARNING

Classes

import stdgo.log.syslog.*

class Syslog

Package syslog provides a simple interface to the system log
    service. It can send messages to the syslog daemon using UNIX
    domain sockets, UDP or TCP.

Only one call to Dial is necessary. On write failures, the syslog client will attempt to reconnect to the server and write again.

The syslog package is frozen and is not accepting new features. Some external packages provide more functionality. See:

    	https://godoc.org/?q=syslog

Syslog function dial

function dial(_network:String, _raddr:String, _priority:stdgo.log.syslog.Priority, _tag:String):stdgo.Tuple<stdgo.log.syslog.Writer, stdgo.Error>
Dial establishes a connection to a log daemon by connecting to
        address raddr on the specified network. Each write to the returned
        writer sends a log message with the facility and severity
        (from priority) and tag. If tag is empty, the os.Args[0] is used.
        If network is empty, Dial will connect to the local syslog server.
        Otherwise, see the documentation for net.Dial for valid values
        of network and raddr.

(view code)

Syslog function newLogger

function newLogger(_p:stdgo.log.syslog.Priority, _logFlag:Int):stdgo.Tuple<stdgo._internal.log.Logger, stdgo.Error>
NewLogger creates a log.Logger whose output is written to the
        system log service with the specified priority, a combination of
        the syslog facility and severity. The logFlag argument is the flag
        set passed through to log.New to create the Logger.

(view code)

Syslog function new_

function new_(_priority:stdgo.log.syslog.Priority, _tag:String):stdgo.Tuple<stdgo.log.syslog.Writer, stdgo.Error>
New establishes a new connection to the system log daemon. Each
        write to the returned writer sends a log message with the given
        priority (a combination of the syslog facility and severity) and
        prefix tag. If tag is empty, the os.Args[0] is used.

(view code)

Typedefs

import stdgo.log.syslog.*

typedef Priority

typedef Priority = stdgo._internal.log.syslog.Priority;

typedef T_serverConn

typedef T_serverConn = stdgo._internal.log.syslog.T_serverConn;

Abstracts

abstract Writer

(view file containing code)

abstract T_netConn

(view file containing code)