-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Design and implement pluggable exposure logging #23
Comments
Adding a bit more specifics. First, let's define an interface for logging implementation: public interface Planout4jLog {
void log(Planout4jLogRecord r);
} Default implementation will utilize SLF4J. The log record class will encapsulate exposure information per namespace, including (but not limited to)
Let's also define a separate interface for serializing an instance of log record: public interace Planout4jLogRecordSerializer {
String serialize(LogRecord r);
} Default implementation will produce JSON. Each YAML namespace config will be extended to include the following logging-related properties:
|
Looks good I think. At which point are you planning to create the Example based on the simple config file. A user can either see the default button A client code example might look like:
Does any of the calls above initiate a callback to the |
In the above example, the 2nd line will trigger logging. BTW, the implementation of the above suggested framework is about to begin 😄 |
@eric239 it's great that you have found time to do this. Looks like the log record has what one would normally want to log. |
#23 pluggable logging with basic impl
Quick question on this: I see 1.2 was released in May 2016 - so I'm assuming these changes did not make it in yet. Is there a plan to release a 1.3? |
@nkapur this project would benefit from a new maintainer(s). I (the original maintainer) have moved on and don't use planout4j in any of my current work. @ryanaylward is there someone at Glassdoor interested in "adopting" planout4j? |
I think having configurable Logging would be a good stopping point. I believe active maintenance might not be required medium or long term. We at GoFundMe are building components for venture projects without having to rely on the internal planout micro-service. |
While different consumers of p4j will likely have different logging implementations, it would be nice to have a pluggable framework that abstracts the "what" to log from "how" it gets logged
The text was updated successfully, but these errors were encountered: