diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2018-01-04 10:31:00 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-04 10:31:00 +0100 |
commit | b60b5c89818eda8336459132919b6dc36f87cc34 (patch) | |
tree | 544c18cc13decefc3571214667640991b6099aea /doc | |
parent | 4ceca39426c0044d45558029430f7ab5b109c87e (diff) | |
parent | a6fd525c0fb0c32dab32aae0efbbbd98b89b6636 (diff) |
Merge pull request #1184 from matthiasbeyer/imag-log/init
imag-log: init
Diffstat (limited to 'doc')
-rw-r--r-- | doc/src/04020-module-log.md | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/doc/src/04020-module-log.md b/doc/src/04020-module-log.md new file mode 100644 index 00000000..0f213a07 --- /dev/null +++ b/doc/src/04020-module-log.md @@ -0,0 +1,40 @@ +## Log {#sec:modules:log} + +The "imag-log" module is a lightweight interface to the "imag-diary" command. + +It is intended as a tumbeblog-like diary, where one does not care to fire up +an editor and type in a long text, but rather type a few words and forget +about it: + +### Usage + +Logs can be created via an entry in the configuration file in the section `log`: + +``` +[log] +logs = ["work", "hobby", "music"] +default = "hobby" +``` + +The `default` key is required and the name which is used here _must_ appear in +the `logs` array. + +In the above configuration snippet, the logs `work`, `hobby` and `music` are +created. The user may now log to one of these logs with: + +``` +imag log --to <logname> "Some message" +# or +imag log -t <logname> "Some message" +# or, to the default log: +imag log "Some message" +``` + +Logs can be read by naming the log: + +``` +imag log show work +``` + +which prints one log per line (including time it was logged). + |