From 6be191acc49bf166d9b519f8935405ef8d9da747 Mon Sep 17 00:00:00 2001 From: Elisa Sohier Date: Fri, 2 Aug 2019 10:32:32 +0200 Subject: Added documentation for the loglevel --- README.mkd | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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. + -- cgit v1.2.3