Improve logging: stdout, file, syslog options.
This commit is contained in:
parent
6dca5c638d
commit
fbe17cae44
4 changed files with 166 additions and 36 deletions
16
doc/changes/2.0
Normal file
16
doc/changes/2.0
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
* Introduce -j option for max parallel jobs, deprecate -p (Darko Poljak)
|
||||
* Add locking (Darko Poljak)
|
||||
* Fix source-is-up check (Nikita Koshikov)
|
||||
* Fix some minor command line parsing issues (Nico Schottelius)
|
||||
* Correct output, if configuration is not in cconfig format (Nico Schottelius)
|
||||
* Minor code cleanups and optimisations (Nico Schottelius)
|
||||
* ccollect_analyse_logs.sh traps more errors and warnings (Patrick Drolet)
|
||||
* Remove -v for mkdir and rm, as they are not POSIX (Patrick Drolet)
|
||||
* Export destination_* to source specific post_exec (Nico Schottelius)
|
||||
* Update documentation regarding exported variables (Nico Schottelius)
|
||||
* Simplify time calculation (Nico Schottelius)
|
||||
* Documentate pre_exec error handling (Nico Schottelius)
|
||||
* Added start script (Thorsten Elle)
|
||||
* Documentate autofs hint (Nico Schottelius)
|
||||
* Speedup source-is-up check and remove --archive (Nico Schottelius)
|
||||
* Removed support for remote backup (see doc) (Nico Schottelius)
|
||||
|
|
@ -1,16 +1 @@
|
|||
* Introduce -j option for max parallel jobs, deprecate -p (Darko Poljak)
|
||||
* Add locking (Darko Poljak)
|
||||
* Fix source-is-up check (Nikita Koshikov)
|
||||
* Fix some minor command line parsing issues (Nico Schottelius)
|
||||
* Correct output, if configuration is not in cconfig format (Nico Schottelius)
|
||||
* Minor code cleanups and optimisations (Nico Schottelius)
|
||||
* ccollect_analyse_logs.sh traps more errors and warnings (Patrick Drolet)
|
||||
* Remove -v for mkdir and rm, as they are not POSIX (Patrick Drolet)
|
||||
* Export destination_* to source specific post_exec (Nico Schottelius)
|
||||
* Update documentation regarding exported variables (Nico Schottelius)
|
||||
* Simplify time calculation (Nico Schottelius)
|
||||
* Documentate pre_exec error handling (Nico Schottelius)
|
||||
* Added start script (Thorsten Elle)
|
||||
* Documentate autofs hint (Nico Schottelius)
|
||||
* Speedup source-is-up check and remove --archive (Nico Schottelius)
|
||||
* Removed support for remote backup (see doc) (Nico Schottelius)
|
||||
* Add options for stdout, file and syslog logging (Darko Poljak)
|
||||
|
|
|
|||
|
|
@ -29,6 +29,9 @@ OPTIONS
|
|||
-a, --all::
|
||||
Backup all sources specified in /etc/ccollect/sources
|
||||
|
||||
-e, --errors::
|
||||
Log only errors
|
||||
|
||||
-h, --help::
|
||||
Show the help screen
|
||||
|
||||
|
|
@ -36,14 +39,41 @@ OPTIONS
|
|||
Specifies the number of jobs to run simultaneously.
|
||||
If max is not specified then parallelise all jobs.
|
||||
|
||||
-l FILE, --logfile FILE::
|
||||
Log to specified file
|
||||
|
||||
-p, --parallel::
|
||||
Parallelise backup processes (deprecated from 2.0)
|
||||
|
||||
-s, --syslog::
|
||||
Log to syslog with tag ccollect
|
||||
|
||||
-V, --version::
|
||||
Show version and exit
|
||||
|
||||
-v, --verbose::
|
||||
Be very verbose (uses set -x)
|
||||
|
||||
-V, --version::
|
||||
Show version and exit
|
||||
|
||||
LOGGING MECHANISM
|
||||
-----------------
|
||||
ccollect logging depends on running in non-interactive/interactive mode
|
||||
and on specified optins. The mechanism behaves as the following:
|
||||
|
||||
non-interactive mode::
|
||||
|
||||
* standard output goes to syslog
|
||||
* optional: specify logging into file
|
||||
* log all output by default
|
||||
* optional: log only errors
|
||||
|
||||
interactive mode::
|
||||
|
||||
* standard output goes to stdout
|
||||
* log only errors
|
||||
* optional: log into syslog or file
|
||||
- log all output by default
|
||||
- optional: log only errors
|
||||
|
||||
|
||||
SEE ALSO
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue