How to connect to an explicit AWS CloudWatch log stream and change it programmatically (Java / Scala / log4j)

I have a daemon in Scala running on EC2 that processes jobs. For each job, I know (possibly) a different log stream to which I would like to add posts.

How can I create a specific box for a log stream that I can connect to loglog log4j and change it when my listener moves on to the next job?

+5
source share

All Articles