Variable: erc-generate-log-file-name-function
erc-generate-log-file-name-function is a customizable variable defined
in erc-log.el.gz.
Value
erc-generate-log-file-name-long
Documentation
A function to generate a log filename.
The function must take five arguments: BUFFER, TARGET, NICK, SERVER and PORT.
BUFFER is the buffer to be saved,
TARGET is the name of the channel, or the target of the query,
NICK is the current nick,
SERVER and PORT are the parameters that were used to connect to BUFFERs
erc-server-process.
If you want to write logs into different directories, make a
custom function which returns the directory part and set
erc-log-channels-directory to its name.
Source Code
;; Defined in /usr/src/emacs/lisp/erc/erc-log.el.gz
(defcustom erc-generate-log-file-name-function 'erc-generate-log-file-name-long
"A function to generate a log filename.
The function must take five arguments: BUFFER, TARGET, NICK, SERVER and PORT.
BUFFER is the buffer to be saved,
TARGET is the name of the channel, or the target of the query,
NICK is the current nick,
SERVER and PORT are the parameters that were used to connect to BUFFERs
`erc-server-process'.
If you want to write logs into different directories, make a
custom function which returns the directory part and set
`erc-log-channels-directory' to its name."
:type '(choice (const :tag "#channel!nick@server:port.txt"
erc-generate-log-file-name-long)
(const :tag "#channel!nick@network.txt"
erc-generate-log-file-name-network)
(const :tag "#channel.txt" erc-generate-log-file-name-short)
(const :tag "#channel@date.txt"
erc-generate-log-file-name-with-date)
(function :tag "Other function")))