Though if you are concerned about using a library with "log4" in the name and/or shuffled into the Apache graveyard in .NET, there are lots of useful replacement libraries. Microsoft.Extensions.Logging is "out of the box" in modern .NET and a simple NuGet away in older frameworks.
[0] https://en.wikipedia.org/wiki/Java_Naming_and_Directory_Inte...
Even with English as my first language, and as a life-long pedant, I still have to stop and think each time I use one or the other.
"Affected means that something was influenced or changed (e.g. the lyrics affected him).
Effected means that something was brought about or facilitated (e.g. she effected the proposed changes)."
It's definitely a subtle change, and, similarly, affect and effect tend to be mixed up as well
- from https://prowritingaid.com/affected-vs-effected#:~:text=To%20....
I will also recommend the book Uncovering The Logic of English, which is primarily aimed at native (American) English speakers but has several nods to English-as-a-second-language lessons.
Cheers! Signed, an American who was corrected by his father quite often and now has an ear for these things.