To simplify logging multiple applications I wanted to integrate the cbElasticSearch
module into my ContentBox App.
However I am runnning into multiple issues:
First of all: when I add either the ElasticsearchAppender
or the LogstashAppender
to the logger config inside the Coldbox.cfc
i will always get the following error: (the two stack traces alternate on each page-reload)
invalid component definition, can't find component [cbelasticsearch.models.logging.ElasticsearchAppender]
The Error Occurred in /coldbox/system/logging/LogBox.cfc: line 312
called from /coldbox/system/logging/LogBox.cfc: line 161
called from /coldbox/system/web/services/LoaderService.cfc: line 51
called from /coldbox/system/Bootstrap.cfc: line 111
called from /Application.cfc: line 140
called from /Application.cfc: line 200
called from /Application.cfc: line 155
invalid component definition, can't find component [cbelasticsearch.models.logging.ElasticsearchAppender]
The Error Occurred in /coldbox/system/logging/LogBox.cfc: line 312
called from /coldbox/system/logging/LogBox.cfc: line 161
called from /coldbox/system/web/services/LoaderService.cfc: line 51
called from /coldbox/system/Bootstrap.cfc: line 111
called from /coldbox/system/Bootstrap.cfc: line 167
called from /coldbox/system/Bootstrap.cfc: line 515
called from /Application.cfc: line 176
When I modify the entry in the logger config to class="models.cbelasticsearch.models.logging.ElasticsearchAppender",
The class can be found. However after this i am getting the following error:
invalid component definition, can't find component [models.cbelasticsearch.models.logging.ElasticsearchAppender]
The Error Occurred in /coldbox/system/logging/LogBox.cfc: line 312
called from /coldbox/system/logging/LogBox.cfc: line 161
called from /coldbox/system/web/services/LoaderService.cfc: line 51
called from /coldbox/system/Bootstrap.cfc: line 111
called from /Application.cfc: line 140
called from /Application.cfc: line 200
called from /Application.cfc: line 155
I was not able yet to find why wirebox is missing here and thereby identify the root-case of the problem.
Am I missing something in the configuration?
Steps to reproduce:
- Install Contentbox
- Install cbElasticSearch
- Add necessary configs to env file
- Copy logger config from docs to Coldbox.cfc:logger
- Start App
My current Config is the same as in the docs, just the .env variables are changed to connect to my local elasticsearch stack.