package
1.23.0
Repository: https://github.com/shogo82148/std.git
Documentation: pkg.go.dev

# Functions

Dialは、指定されたネットワーク上のアドレスraddrに接続することで ログデーモンへの接続を確立します。戻り値のライターへの 各書き込みは、施設と重大度(priorityから)およびタグを持つログメッセージを送信します。 タグが空の場合、[os.Args][0]が使用されます。 ネットワークが空の場合、Dialはローカルのsyslogサーバーに接続します。 それ以外の場合は、ネットワークとraddrの有効な値については、net.Dialのドキュメンテーションを参照してください。.
Newはシステムログデーモンへの新しい接続を確立します。戻り値のライターへの 各書き込みは、指定された優先度(syslog施設と重大度の組み合わせ)と プレフィックスタグを持つログメッセージを送信します。タグが空の場合、[os.Args][0]が使用されます。.
NewLoggerは、指定された優先度(syslog施設とseverityの組み合わせ)でシステムログサービスに書き込まれる [log.Logger] を作成します。 logFlag引数は、Loggerを作成するために [log.New] に渡されるフラグセットです。.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
/usr/include/sys/syslog.hから取得。 これらはLinux、BSD、OS Xで同じです。.
No description provided by the author
No description provided by the author
No description provided by the author
/usr/include/sys/syslog.hから取得。 これらはLinux、BSD、OS XでLOG_FTPまで同じです。.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

Writerはsyslogサーバへの接続です。.

# Type aliases

Priorityは、syslogの施設と重大度の組み合わせです。 例えば、[LOG_ALERT] | [LOG_FTP] は、FTP施設からのアラート重大度メッセージを送信します。 デフォルトの重大度は [LOG_EMERG] で、デフォルトの施設は [LOG_KERN] です。.