Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Sling log rotation pattern - twice a day not working as expected

Avatar

Avatar
Boost 5
Level 2
Yonit
Level 2

Likes

8 likes

Total Posts

19 posts

Correct Reply

1 solution
Top badges earned
Boost 5
Give Back 5
Give Back 3
Give Back
Boost 3
View profile

Avatar
Boost 5
Level 2
Yonit
Level 2

Likes

8 likes

Total Posts

19 posts

Correct Reply

1 solution
Top badges earned
Boost 5
Give Back 5
Give Back 3
Give Back
Boost 3
View profile
Yonit
Level 2

14-01-2021

Has anyone been successful in getting the sling log rotation pattern for twice a day - at noon and at midnight to actually work?  '.'yyyy-MM-dd-a ”

Other patterns work as expected, but this one seems to just rotate once a day at midnight with the addition of AM or PM on the filepath instead of actually generating 2 per day.

 

 

AEM 6.5 log rotation

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Boost 5
Level 2
Yonit
Level 2

Likes

8 likes

Total Posts

19 posts

Correct Reply

1 solution
Top badges earned
Boost 5
Give Back 5
Give Back 3
Give Back
Boost 3
View profile

Avatar
Boost 5
Level 2
Yonit
Level 2

Likes

8 likes

Total Posts

19 posts

Correct Reply

1 solution
Top badges earned
Boost 5
Give Back 5
Give Back 3
Give Back
Boost 3
View profile
Yonit
Level 2

19-02-2021

This was found to be a bug and a jira was created for it.


Sling has logback integration for all logging-related activities.
Date Pattern('.'yyyy-MM-dd-a ) is not treated as valid pattern in logback.[0].
The corresponding bug has been raised in logback Jira - https://jira.qos.ch/browse/LOGBACK-1552
According to the status of logback JIRA, we will keep updating this JIRA
[0]: https://github.com/qos-ch/logback/blob/bbc783e6d68482abe8e7dff0d06708175e971b91/logback-core/src/mai...

The issue is pending with Sling to fix the same which than be included in our AEM as part of Service pack, so I would request you to please use wait for the SP to fix the issue because the issues can be fixed only via SP/CFP cadence as Adobe recommended.

Answers (1)

Answers (1)

Avatar

Avatar
Boost 500
MVP
Vijayalakshmi_S
MVP

Likes

564 likes

Total Posts

707 posts

Correct Reply

234 solutions
Top badges earned
Boost 500
Give Back 50
Give Back 5
Ignite 10
Ignite 5
View profile

Avatar
Boost 500
MVP
Vijayalakshmi_S
MVP

Likes

564 likes

Total Posts

707 posts

Correct Reply

234 solutions
Top badges earned
Boost 500
Give Back 50
Give Back 5
Ignite 10
Ignite 5
View profile
Vijayalakshmi_S
MVP

20-01-2021

Hi @Yonit,

Per the significance of this pattern from Sling docs, could see that there is no explicit generation of 2 files per day.(Should be with AM and PM)

Could you confirm if is deviating the below explanation.

https://sling.apache.org/documentation/development/logging.html

 

Vijayalakshmi_S_0-1611158670802.png

Note : I will try from my end as well and update this thread.