Documentation ¶
Overview ¶
Package unix implements a unix domain socket writer which implements the Writer.
The unix domain socket writer aims at log watching. For log transmission, use a syslog writer instead. With a unix domain socket writer, you can use `netcat' to receive and watch logs rather than the `tail' which is inconvenient because a new log file will be created when a log file reaches its max size.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // Pathname is the pathname of the socket file that will be created. // Shell expansion is NOT supported. // If Pathname is not specified, "/tmp/gxlog/<pid>" is used. Pathname string // Perm is permission of the socket file that will be created. // If Perm is not specified, 0700 is used. Perm os.FileMode // NoOverwrite specifies NOT to overwrite a existing socket file. NoOverwrite bool }
A Config is used to configure a unix domain socket writer.
Click to show internal directories.
Click to hide internal directories.