[ https://issues.apache.org/jira/browse/HDFS-9118?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15187915#comment-15187915 ]
Bob Hansen commented on HDFS-9118: ---------------------------------- Great. If we can, let's implement the plugins for the C-API glue logger and the stream/stderr logger. If we want to be super-cool, we could include example plug-ins for google logging (but we don't want to have a dependency here). What data types to we need to support in the first pass? I would say all the fundamental types http://en.cppreference.com/w/cpp/language/types and special handling for const char * and const std::string &. I think we should be able to have a fallback << <T>foo that calls std::to_string<T>(foo) that covers many cases. > Add logging system for libdhfs++ > -------------------------------- > > Key: HDFS-9118 > URL: https://issues.apache.org/jira/browse/HDFS-9118 > Project: Hadoop HDFS > Issue Type: Sub-task > Components: hdfs-client > Affects Versions: HDFS-8707 > Reporter: Bob Hansen > Assignee: James Clampffer > Attachments: HDFS-9118.HDFS-8707.000.patch, > HDFS-9118.HDFS-8707.001.patch > > > With HDFS-9505, we've starting logging data from libhdfs++. Consumers of the > library are going to have their own logging infrastructure that we're going > to want to provide data to. > libhdfs++ should have a logging library that: > * Is overridable and can provide sufficient information to work well with > common C++ logging frameworks > * Has a rational default implementation > * Is performant -- This message was sent by Atlassian JIRA (v6.3.4#6332)