Re: Locating log files

2022-06-23 Thread Lionel SCHWARZ


- Le 22 Juin 22, à 8:03, Francesco Chicchiriccò ilgro...@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

smime.p7s
Description: S/MIME Cryptographic Signature


Re: Locating log files

2022-06-22 Thread Francesco Chicchiriccò

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/



Locating log files

2022-06-21 Thread Lionel SCHWARZ
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

smime.p7s
Description: S/MIME Cryptographic Signature