You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@sling.apache.org by Nicolas Peltier <np...@adobe.com.INVALID> on 2018/09/05 13:57:15 UTC
[slingstart-maven-plugin] configuring logs
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
Re: [slingstart-maven-plugin] configuring logs
Posted by Ben Fortuna <be...@gmail.com>.
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, <np...@adobe.com.invalid>
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
>
>