mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-30 20:06:56 -05:00
Put all the stdout output also in stdlog
This commit is contained in:
parent
3884af54ea
commit
2ac751b6d9
21 changed files with 221 additions and 216 deletions
|
|
@ -22,27 +22,30 @@
|
|||
/* log */
|
||||
|
||||
/**
|
||||
* Output message targgeted for the screen.
|
||||
* Output messages targgeted for the screen.
|
||||
*
|
||||
* Messages are in human readable format.
|
||||
* They must include the full line output and terminate with '\n'.
|
||||
*
|
||||
* These messages go in stdout.
|
||||
*/
|
||||
void fout(const char* format, ...) __attribute__((format(printf, 1, 2)));
|
||||
|
||||
/**
|
||||
* Error message printed before an early termination.
|
||||
* Error messages printed before an early termination.
|
||||
*
|
||||
* Messages are in human readable format.
|
||||
* They must include the full line output and terminate with '\n'.
|
||||
*
|
||||
* These messages go in the log file and in stderr.
|
||||
*/
|
||||
void ferr(const char* format, ...) __attribute__((format(printf, 1, 2)));
|
||||
|
||||
/**
|
||||
* Log message printed after an error.
|
||||
* Log messages printed after an error.
|
||||
*
|
||||
* Messages are in human readable format.
|
||||
* They must include the full line output and terminate with '\n'.
|
||||
*
|
||||
* These messages go in the log file if specified, otherwise in stderr.
|
||||
*/
|
||||
|
|
@ -54,7 +57,7 @@ void flog(const char* format, ...) __attribute__((format(printf, 1, 2)));
|
|||
void fflush_log(void);
|
||||
|
||||
/**
|
||||
* Tag message.
|
||||
* Tag messages.
|
||||
*
|
||||
* Messages are in tag format, like "tag:entry:...".
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue