You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@syncope.apache.org by Lionel SCHWARZ <li...@in2p3.fr> on 2022/06/21 14:51:50 UTC

Locating log files

Dear all,

I feel a bit shameful, I cannot find any log files in my Syncope setup.
I have created a Syncope project with Maven archetype, then built with Maven, and then copied war in Tomcat9.
The application works fine, and I can watch logs in the console, but am unable to find an 'core.log' on the machine...

I tried also to build with 'mvn -Dlog.directory=/tmp' but found nothing in /tmp...

What did I miss?

Thanks
Lionel

Re: Locating log files

Posted by Lionel SCHWARZ <li...@in2p3.fr>.

----- Le 22 Juin 22, à 8:03, Francesco Chicchiriccò ilgrosso@apache.org a écrit :

> On 21/06/22 16:51, Lionel SCHWARZ wrote:
>> Dear all,
>>
>> I feel a bit shameful, I cannot find any log files in my Syncope setup.
>> I have created a Syncope project with Maven archetype, then built with Maven,
>> and then copied war in Tomcat9.
>> The application works fine, and I can watch logs in the console, but am unable
>> to find an 'core.log' on the machine...
>>
>> I tried also to build with 'mvn -Dlog.directory=/tmp' but found nothing in
>> /tmp...
>>
>> What did I miss?
> 
> Hi Lionel,
> it seems you've missed the notice [1] which invites you to head to the Reference
> Guide "to understand how to configure, extend, customize and *deploy* your new
> Apache Syncope project".
> 
> In particular, the explanation about Deployment Directories [2] and following
> instructions about how to build your project for deployment, e.g.
> 
> mvn clean verify \
>    -Dconf.directory=/opt/syncope/conf \
>    -Dbundles.directory=/opt/syncope/bundles \
>    -Dlog.directory=/opt/syncope/log

Thanks Francesco, that's indeed what I did, however after deploying WAR files to Tomcat and restarting Tomcat, the log directory is empty.
So it seems I missed something else.

Lionel

Re: Locating log files

Posted by Francesco Chicchiriccò <il...@apache.org>.
On 21/06/22 16:51, Lionel SCHWARZ wrote:
> Dear all,
>
> I feel a bit shameful, I cannot find any log files in my Syncope setup.
> I have created a Syncope project with Maven archetype, then built with Maven, and then copied war in Tomcat9.
> The application works fine, and I can watch logs in the console, but am unable to find an 'core.log' on the machine...
>
> I tried also to build with 'mvn -Dlog.directory=/tmp' but found nothing in /tmp...
>
> What did I miss?

Hi Lionel,
it seems you've missed the notice [1] which invites you to head to the Reference Guide "to understand how to configure, extend, customize and *deploy* your new Apache Syncope project".

In particular, the explanation about Deployment Directories [2] and following instructions about how to build your project for deployment, e.g.

mvn clean verify \
    -Dconf.directory=/opt/syncope/conf \
    -Dbundles.directory=/opt/syncope/bundles \
    -Dlog.directory=/opt/syncope/log

The WAR files generated by this command are configured differently than the ones built for embedded mode [3].

Hope this helps.
Regards.

[1] https://nightlies.apache.org/syncope/2_1_X/getting-started.html#moving-forward
[2] https://syncope.apache.org/docs/reference-guide.html#deployment-directories
[3] https://nightlies.apache.org/syncope/2_1_X/getting-started.html#embedded-mode

-- 
Francesco Chicchiriccò

Tirasa - Open Source Excellence
http://www.tirasa.net/

Member at The Apache Software Foundation
Syncope, Cocoon, Olingo, CXF, OpenJPA, PonyMail
http://home.apache.org/~ilgrosso/