erc-logging-enabled
erc-logging-enabled is an autoloaded Lisp function in `erc-log.el
'.
(erc-logging-enabled &optional BUFFER)
Return non-nil if logging is enabled for BUFFER.
If BUFFER is nil, the value of `current-buffer' is used.
Logging is enabled if `erc-log-channels-directory' is non-nil, the directory
is writable (it will be created as necessary) and
`erc-enable-logging' returns a non-nil value.