Let's use recently released jcabi-log version 0.24.0. There is a new "file" decor, which allows us to show file name in a log line, in a compressed format:
Logger.info("The file was created: %[file]s", path);
This log line will not print absolute path of the file, but only its relative to the current directory part. Thus, our logs will be much more readable, comparing to now.
Let's use recently released jcabi-log version 0.24.0. There is a new "file" decor, which allows us to show file name in a log line, in a compressed format:
This log line will not print absolute path of the file, but only its relative to the current directory part. Thus, our logs will be much more readable, comparing to now.