summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElisa Sohier <elisa.sohier@art-software.fr>2019-08-02 10:32:32 +0200
committerElisa Sohier <elisa.sohier@art-software.fr>2019-08-02 10:32:32 +0200
commit6be191acc49bf166d9b519f8935405ef8d9da747 (patch)
treea35c3e0e233cbe4db7b19aa5b1b81be0eb3c5bf8
parent86b2ea0b51452a3bb3fdcacb602e981b0f591b42 (diff)
Added documentation for the loglevel
-rw-r--r--README.mkd13
1 files changed, 13 insertions, 0 deletions
diff --git a/README.mkd b/README.mkd
index 07affcb..97ae736 100644
--- a/README.mkd
+++ b/README.mkd
@@ -78,3 +78,16 @@ If you wish to tell asc to ignore certain items inside some of your targets, you
You can prepend `**` to mean "any length of file name or folders", as well as common glob notation (`*` to mean "any length of any characters" or ? for "any single character"), one target per line.
See `man 1 rsync`, section "FILTER RULES" for more info on this file's rules format.
+
+## Logging ##
+What asc does is automatically written in the file `~/.autoSync.log`, which you can read to know what operations have been done in the past.
+
+You can set the environment variable `LOGLEVEL` to instruct asc to only log certain events.
+Log levels are incremental, which means if you set it to a certain level, it will log everything that falls *after this value*.
+
+ - 0: DEBUG. Detailed information about what happens inside.
+ - 1: INFO.
+ - 2: NOTIF. Less verbose than INFO
+ - 3: WARN. Only warnings and errors
+ - 4: ERROR. Only fatal errors.
+