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
diff --git a/include/osmocom/core/logging.h b/include/osmocom/core/logging.h
index 1e79dab..617d78e 100644
--- a/include/osmocom/core/logging.h
+++ b/include/osmocom/core/logging.h
@@ -224,6 +224,7 @@
 enum log_filename_type {
 	LOG_FILENAME_NONE,
 	LOG_FILENAME_PATH,
+	LOG_FILENAME_BASENAME,
 };
 
 /*! structure representing a logging target */