diff options
author | Neels Hofmeyr <neels@hofmeyr.de> | 2018-01-16 02:49:48 +0100 |
---|---|---|
committer | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2018-01-19 15:46:49 +0000 |
commit | 0e2a94326ed575e801f434b72399e5fb8b429d61 (patch) | |
tree | f4307ce417561c5aa2ffdc7dbd9ab6ef5536a8ec /include/osmocom/core/logging.h | |
parent | bd7bd3947d4882bd7939e34d4565027c64524742 (diff) |
logging: allow to log only the basename of each source
In the C API, add another enum log_file_type value, and when set print only the
basename of the source file path.
Rationale: especially when not building directly in the source dir, the paths
to the source files can become rather long. Usually, just the basename of the
file is sufficient to identify the source line.
Change-Id: If3e4d5fb2066f8bf86e59c82d1752b1a843cf58e
Diffstat (limited to 'include/osmocom/core/logging.h')
-rw-r--r-- | include/osmocom/core/logging.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/osmocom/core/logging.h b/include/osmocom/core/logging.h index 1e79dab3..617d78e4 100644 --- a/include/osmocom/core/logging.h +++ b/include/osmocom/core/logging.h @@ -224,6 +224,7 @@ enum log_target_type { enum log_filename_type { LOG_FILENAME_NONE, LOG_FILENAME_PATH, + LOG_FILENAME_BASENAME, }; /*! structure representing a logging target */ |