diff options
author | Geert Hauwaerts <geert@hauwaerts.be> | 2014-07-07 19:47:51 +0200 |
---|---|---|
committer | Geert Hauwaerts <geert@hauwaerts.be> | 2014-07-07 19:47:51 +0200 |
commit | 5e8947a8b0943ae569876af105c4702ab2d95742 (patch) | |
tree | 64a7b1e2de39060548121ea8f8dfa13b9df89910 /docs/help/in/log.in | |
parent | 99b629ab2040b1a4ed9a07fcf0f3998d4c1bad5d (diff) | |
download | irssi-5e8947a8b0943ae569876af105c4702ab2d95742.zip |
Syntax documentation rewrite for L-commands
Rewrote the syntax documentation for all commands starting with L.
Diffstat (limited to 'docs/help/in/log.in')
-rw-r--r-- | docs/help/in/log.in | 81 |
1 files changed, 44 insertions, 37 deletions
diff --git a/docs/help/in/log.in b/docs/help/in/log.in index 09580793..647d4560 100644 --- a/docs/help/in/log.in +++ b/docs/help/in/log.in @@ -1,41 +1,48 @@ +%9Syntax:%9 + @SYNTAX:log@ - -noopen: Create the entry to log list, but don't start logging - -autoopen: Automatically open this log file at startup - -<server tag>: Targets are logged only in this server - -targets: Log only in specified channels/nicks (space separated list) - -window: Log output in the window. Active window is used by default, or - you can give the window's refnum in -targets. - <filename>: File name where to log, it is parsed with - strftime(), so %%d=day, etc. see "man strftime" for - more info. - <levels>: Defaults to ALL - <id>: ID number of log. - -/SET log_create_mode <mode> - Specifies what file mode to use with - the created log files. Default is 0600. - -All of these are parsed with strftime(): -/SET log_timestamp <text> - Specifies the time stamp format. - Default is "%%H:%%M ". -/SET log_open_string <text> - Text written to log when it's opened -/SET log_close_string <text> - Text written to log when it's closed -/SET log_day_changed <text> - Text written to log when day changes - -NOTE: Log files are locked after opened, so two Irssis can't -accidentally try to write to the same log file. - -Examples: - -/LOG OPEN -targets cras ~/irclogs/cras.log MSGS - - Logs all messages from/to nick `cras' - -/LOG OPEN -targets #linux ~/irclogs/linux/linux-%%Y-%%m-%%d - - Logs all messages in channel #linux. Log is rotated daily, so - logs in 1. May 2000 goes to file "linux-2000-05-01", when the - day is changed, Irssi closes the log and starts logging to - "linux-2000-05-02" etc. - -See also: SET LOG, WINDOW LOG +%9Parameters:%9 + + OPEN: Opens a logfile. + CLOSE: Closes a logfile. + START: Starts logging a log entry. + STOP: Stops logging a log entry. + + -noopen: Saves the entry in the configuration, but doesn't actually + start logging. + -autoopen: Automatically opens the log at startup. + -window: Displays the output to the active window, or the window + specified in the targets parameter. + -<server tag>: The server tag the targets must be on. + -targets: Logs the specified nickhames or channels. + -colors: Also log the color codes of the messages. + + The filename of the log and the levels to match; if no argument is given, + the list of open logs will be displayed. + +%9Description:%9 + + Opens a logfile and stores the messages of the given targets into it; the + logfiles will be locked so multiple clients cannot log to the same file. + + You may use any of the date formats to create a logrotation; we strongly + recommend you to enable autolog if you are interested in keeping logs. + +%9Examples:%9 + + /LOG OPEN -targets mike ~/irclogs/mike.log MSGS + /LOG OPEN -targets #irssi-freenode ~/irclogs/freenode/irssi-%%Y-%%m-%%d + /LOG CLOSE ~/irclogs/freenode/irssi-%%Y-%%m-%%d + /LOG STOP ~/irclogs/freenode/irssi-%%Y-%%m-%%d + /LOG START ~/irclogs/freenode/irssi-%%Y-%%m-%%d + + /SET autolog ON + +%9References:%9 + + https://github.com/irssi/irssi/blob/master/docs/formats.txt + +%9See also:%9 SET LOG, WINDOW LOG |