when using async option on FileAppender, nothing logs

Description

Since the FileAppender is now inherently async, and having the async flag = true actually breaks the appender. The new function startLogListener() never completes when called from within a thread.

Activity

Show:
Luis Majano
October 16, 2018, 11:00 PM

I am revisiting this, can you remind me what was the workaround?

Brad Wood
October 16, 2018, 11:04 PM

The workaround is for LogBox to NOT try and wrap the file appender in a thread as it basically renders it useless. The new file appender is already inherently threaded so it just needs to ignore that attribute and never allow LogBox to try and wrap it in additional threads. The problem is, if the appender detects it is already in a thread, it won't do anything, which makes it useless.

Luis Majano
October 16, 2018, 11:14 PM

I am wondering if we just remove that if statement?

Brad Wood
October 17, 2018, 1:01 AM

No, Adobe and Lucee 4 don't allow nested threads

Assignee

Luis Majano

Reporter

Sean Daniels

Labels

None

Components

Fix versions

Priority

Major
Configure