You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by Robert Munteanu <ro...@apache.org> on 2019/04/02 08:32:32 UTC

[DISCLOURE] [RTC] Rename error.log to success.log

Hi,

I should disclose the fact that I started this as an April Fool's joke.

Much to my surprise, a constructive discussion has come up about the
log name and I'll follow-up on a different thread about those
proposals.

Thanks!

Robert

P.S. Same time, next year :-)

On Mon, 2019-04-01 at 09:19 +0200, Robert Munteanu wrote:
> Hi,
> 
> I think for some time we have overlooked the operational aspects of
> Apache Sling and that it's high time to address this huge gap we have
> between developing with Sling and operating with Sling.
> 
> One of the things that bothers me the most is that everything is
> written in the _error_ log file. That is absolutely setting us up for
> failure! Everytime I need to see what Sling is doing I have to go to
> the _error_ log, and this already brings about the idea of _errors_
> in
> Sling.
> 
> As we all know, there are no errors in Sling, there is only great
> success. I would therefore like to submit this simple patch to change
> the default log file name to success.log .
> 
> Given the obviousness of the benefit, this discussion is open only
> for
> today.
> 
> Thanks,
> 
> Robert
> 
> diff --git a/src/main/provisioning/sling.txt
> b/src/main/provisioning/sling.txt
> index 55f2d9b..5a4984c 100644
> --- a/src/main/provisioning/sling.txt
> +++ b/src/main/provisioning/sling.txt
> @@ -134,7 +134,7 @@
>  
>    org.apache.sling.commons.log.LogManager
>      org.apache.sling.commons.log.pattern="%d{dd.MM.yyyy
> HH:mm:ss.SSS}\
> *%level*\ [%thread]\ %logger\ %msg%n"
> -    org.apache.sling.commons.log.file="logs/error.log"
> +    org.apache.sling.commons.log.file="logs/success.log"
>      org.apache.sling.commons.log.level="info"
>      org.apache.sling.commons.log.file.size="'.'yyyy-MM-dd"
>      org.apache.sling.commons.log.file.number=I"7"
>