diff -r 0b8692959d37 -r 4779a6fb4fbe src/ucx/logging.c --- a/src/ucx/logging.c Tue Aug 25 12:07:56 2020 +0200 +++ b/src/ucx/logging.c Sat Oct 24 17:34:32 2020 +0200 @@ -91,6 +91,10 @@ k += strftime(msg+k, 128, logger->dateformat, localtime(&now)); } if ((logger->mask & UCX_LOGGER_SOURCE) > 0) { + char *fpart = strrchr(file, '/'); + if (fpart) file = fpart+1; + fpart = strrchr(file, '\\'); + if (fpart) file = fpart+1; n = strlen(file); memcpy(msg+k, file, n); k += n;