[Doc] log4j.configuration with relative path seems wrong

10 views
Skip to first unread message

rober...@yahoo.fr

unread,
Oct 6, 2025, 2:46:00 PM (2 days ago) Oct 6
to repo-d...@googlegroups.com
Hello,

In `Documentation/config-gerrit.txt`, the following Java option is suggested to specify the path to the log4j configuration file:

```
-Dlog4j.configuration=file://etc/log4j.properties
```

It seems to be wrong as the first part (etc) is interpreted as a domain name on my side. The following option works though:

```
-Dlog4j.configuration=file:etc/log4j.properties
```

Does it happen with you as well?

Matthias Sohn

unread,
Oct 6, 2025, 2:48:05 PM (2 days ago) Oct 6
to rober...@yahoo.fr, repo-d...@googlegroups.com
On Mon, Oct 6, 2025 at 8:45 PM 'rober...@yahoo.fr' via Repo and Gerrit Discussion <repo-d...@googlegroups.com> wrote:
Hello,

In `Documentation/config-gerrit.txt`, the following Java option is suggested to specify the path to the log4j configuration file:

```
-Dlog4j.configuration=file://etc/log4j.properties

looks like a missing slash for the root directory, I guess it should use 3 slashes: 

-Dlog4j.configuration=file:///etc/log4j.properties

 
```

It seems to be wrong as the first part (etc) is interpreted as a domain name on my side. The following option works though:

```
-Dlog4j.configuration=file:etc/log4j.properties
```

Does it happen with you as well?

--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en

---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/repo-discuss/445463968.7776123.1759771159502%40mail.yahoo.com.
Reply all
Reply to author
Forward
0 new messages