diff options
| author | Ray Strode <rstrode@redhat.com> | 2007-05-23 11:27:08 -0400 |
|---|---|---|
| committer | Ray Strode <rstrode@redhat.com> | 2007-05-23 11:27:08 -0400 |
| commit | f7726dbc72737bf79667d33e59b348aed56146a3 (patch) | |
| tree | 193ae420f246ea972b1c860b78075adfa44d9ad3 /src | |
| parent | c8e7fc693c0f959f5ee26715908df5aa7e8a0eae (diff) | |
automatically add new lines to log messages unless explicitly
called _without_new_line
Diffstat (limited to 'src')
| -rw-r--r-- | src/ply-logger.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ply-logger.h b/src/ply-logger.h index 1ea5efd..797267c 100644 --- a/src/ply-logger.h +++ b/src/ply-logger.h @@ -106,8 +106,12 @@ while (0) #define ply_flush_log () \ ply_logger_flush (ply_logger_get_default ()) #define ply_log(format, args...) \ + ply_logger_inject (ply_logger_get_default (), format "\n", ##args) +#define ply_log_without_new_line(format, args...) \ ply_logger_inject (ply_logger_get_default (), format, ##args) #define ply_error(format, args...) \ + ply_logger_inject (ply_logger_get_error_default (), format "\n", ##args) +#define ply_error_without_new_line(format, args...) \ ply_logger_inject (ply_logger_get_error_default (), format, ##args) #define ply_toggle_tracing() \ |
