Comments (4)
Perfect. If I drop a PR, would it be possible to have a 2.6.1 release soon?
Thanks a lot.
from fluency.
@frosiere Even with setRecordFormatter()
, it looks still a bit complicated to inject Jackson modules. And I have another concern that a wrong RecordFormatter can be passed (e.g. passing JsonlRecordFormatter to FluencyBuilderForFluentd.)
How about this?
public class CustomFluencyLogbackAppender extends FluencyLogbackAppender<ILoggingEvent> {
@Override
protected FluencyBuilderForFluentd configureFluency() {
final var builder = new FluencyBuilderForFluentd();
// "setJacksonModulesForRecordFormatter" is too verbose...?
builder.setJacksonModulesForRecordFormatter(Lists.newArrayList(
new Jdk8Module(),
new JavaTimeModule()
));
return builder;
}
}
from fluency.
Good point, proposal is nice and prevents using a wrong formatter. So, this may be the way to go.
An alternative would either be a method taking the FluentdRecordFormatter like
builder.setRecordFormatter(FluentdRecordFormatter formatter)
Or a method taking the record formatter config like
builder.setRecordFormatterConfig(RecordFormatter.Config config)
This would support possible extensions of the config in future releases.
From a more general point of view, only the solution exposing the formatter gives a way to "setup" (enable/disable feature, etc) the internal ObjectMapper by overriding the method AbstractRecordFormatter#registerObjectMapperModules.
Thanks a lot for your reply.
from fluency.
Yeah, setRecordFormatter()
is more powerful. I'll go with it.
I'm a bit busy these days and it would take some time until the feature is released.
from fluency.
Related Issues (20)
- Support to HTTP Input HOT 1
- Architectural Doubts HOT 1
- Formatting the message HOT 2
- Regarding setSenderWorkBufSize and setJvmHeapBufferMode(true); HOT 1
- Can we customize the size of data sent? HOT 3
- Exception when ack expected but not received HOT 3
- Some logs are lost after fluentd restart HOT 4
- emit map date issure HOT 2
- ACKs with fluent-bit HOT 8
- Not getting logs on AWS EKS cluster HOT 1
- Cannot use mutual signing TLS HOT 2
- Micrometer metrics HOT 2
- java.lang.NoClassDefFoundError: on Android 6 devices HOT 1
- Introduce strict buffer retention size property HOT 5
- Broken Pipe error after 1 minute of idle HOT 3
- Connection reset by peer errors HOT 2
- Need a way to configure fileBackupPrefix of Buffer.Config HOT 3
- Fluency - emit() failed due to buffer full. Flushing buffer. Please try again. HOT 5
- Add support for Unix domain sockets HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fluency.