First thing to look at is the file/directory permissions of the logs
directory with an eye on what user the daemon runs as.
My gut says your daemon was started with a user that does not have
permissions to write to your logs directory.

Joakim Erdfelt / [email protected]


On Wed, Oct 19, 2022 at 12:05 PM Ram Vemuri <[email protected]> wrote:

> Yes, I added logging-log4j2 and added a custom log4j2.xml that writes to
> /logs under jettybase. App writes to its own log file in the same dir. This
> works when jetty is started from command line but not when it runs as a
> service. As a s device syslog shows the startup command but logs go
> nowhere.
>
> Sent from my iPhone
>
> On Oct 19, 2022, at 9:56 AM, Joakim Erdfelt <[email protected]> wrote:
>
> 
> Did you setup log4j2 on your Jetty instance (the `${jetty.base}`
> directory)?
>
> Jetty 10 ships with slf4j-2.x support.
> The default sfl4j-2.x implementation (not log4j2) will write to STDERR
> (aka System.err).
>
> Joakim Erdfelt / [email protected]
>
>
> On Wed, Oct 19, 2022 at 11:53 AM Ram Vemuri <[email protected]> wrote:
>
>> Hi
>> I’ve set up Jetty 10 to run as a daemon on Ubuntu 22. Logs aren’t working
>> though.  I see the start commands logged in syslog but no jetty logs. my
>> war deploys and works but I dont see it’s log4j2 logs. Any ideas on what I
>> might be missing? Thank you.
>> -Ram Vemuri
>>
>>
>> Sent from my iPhone
>> _______________________________________________
>> jetty-users mailing list
>> [email protected]
>> To unsubscribe from this list, visit
>> https://www.eclipse.org/mailman/listinfo/jetty-users
>>
> _______________________________________________
> jetty-users mailing list
> [email protected]
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/jetty-users
>
> _______________________________________________
> jetty-users mailing list
> [email protected]
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/jetty-users
>
_______________________________________________
jetty-users mailing list
[email protected]
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/jetty-users

Reply via email to