[slingstart-maven-plugin] configuring logs

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[slingstart-maven-plugin] configuring logs

Nicolas Peltier-3
Hi,

Is there a way to easily set logger on a sling instance launched with slingstart-maven-plugin ?
Trying to set debug log in https://github.com/apache/sling-org-apache-sling-servlets-annotations-it/blob/master/pom.xml#L76

Nicolas´╗┐

Reply | Threaded
Open this post in threaded view
|

Re: [slingstart-maven-plugin] configuring logs

Ben Fortuna-2
You could create a bundle that includes the following config (remove the
third line to output to default log file, or remove filename to output to
stdout):

"org.apache.sling.commons.log.LogManager": {

"jcr:primaryType":"sling:OsgiConfig",
"org.apache.sling.commons.log.file": "debug.log",
"org.apache.sling.commons.log.level": "debug"
}

On Wed., 5 Sep. 2018, 11:57 pm Nicolas Peltier, <[hidden email]>
wrote:

> Hi,
>
> Is there a way to easily set logger on a sling instance launched with
> slingstart-maven-plugin ?
> Trying to set debug log in
> https://github.com/apache/sling-org-apache-sling-servlets-annotations-it/blob/master/pom.xml#L76
>
> Nicolas´╗┐
>
>