ppkarwasz commented on code in PR #3855:
URL: https://github.com/apache/logging-log4j2/pull/3855#discussion_r2466220923
##########
log4j-core/src/main/java/org/apache/logging/log4j/core/appender/FileManager.java:
##########
@@ -343,6 +344,16 @@ protected synchronized void writeToDestination(final
byte[] bytes, final int off
public String getFileName() {
return getName();
}
+
+ /**
+ * Returns the Path of the file being managed.
+ * @return The name of the file being managed.
+ * @since 2.26.0
+ */
+ public Path getPath() {
Review Comment:
I was interpreting `filePath` as “path of the file” as opposed to the path
to its parent directory or similar.
I agree that “path with `file:` scheme” would be the wrong interpretation,
even if currently that is the only scheme we support.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]