Expand my Community achievements bar.

SOLVED

AEM logging : Is AEM logging async/synchronous

Avatar

Level 4

Hello Team, Is AEM logging async/synchronous?

Regards,

Anand MN

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi

Since AEM uses SLF4j for logging, so if you try to dig into SLF4j implementation, you may find.

But nobody sure whether SLF4J thread safe or not.

check if this helps

https://jira.qos.ch/browse/SLF4J-167

slf4j over sysout not thread safe

If you can always check SLF4J implementation slf4j/slf4j-api/src/main/java/org/slf4j at master · qos-ch/slf4j · GitHub



Arun Patidar

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

Hi

Since AEM uses SLF4j for logging, so if you try to dig into SLF4j implementation, you may find.

But nobody sure whether SLF4J thread safe or not.

check if this helps

https://jira.qos.ch/browse/SLF4J-167

slf4j over sysout not thread safe

If you can always check SLF4J implementation slf4j/slf4j-api/src/main/java/org/slf4j at master · qos-ch/slf4j · GitHub



Arun Patidar

Avatar

Employee Advisor

I think that AEM uses snychronous logging. Although the performance of logging was never that relevant for me (it appeared never as a bottleneck when I profiled AEM), so I basically ignored this question.

Cheers,

Jörg