Skip to content

Conversation

@merlimat
Copy link
Contributor

Motivation

In many cases, the supplied Log4CXX logger for C++ is not practical or convenient for users.

For examples, when using C++ client library wrapped in Python / Go the log messages from pulsar client library do not interact well with the the logs of the rest of the application.

The same happens when a C++ application is already using a different logging framework than Log4cxx.

Modifications

  • Added option to pass a custom LoggerFactory and Logger implementation
  • By default, a simple logger that prints on console is provided
  • Removed hard dependency on Log4Cxx. By default it's disabled at compile time. Can be enabled with cmake -DUSE_LOG4CXX
  • Provide Log4cxx based implementation for Pulsar logger.

@merlimat merlimat added type/enhancement The enhancements for the existing features or docs. e.g. reduce memory usage of the delayed messages component/c++ labels May 22, 2018
@merlimat merlimat added this to the 2.1.0-incubating milestone May 22, 2018
@merlimat merlimat self-assigned this May 22, 2018
@merlimat
Copy link
Contributor Author

retest this please

1 similar comment
@merlimat
Copy link
Contributor Author

retest this please

Copy link
Member

@sijie sijie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#shipit

just one note: we need to list in the release notes that people need to specify -DUSE_LOG4XX when using the new cpp client.

@merlimat merlimat merged commit 26b181e into apache:master May 22, 2018
@merlimat merlimat deleted the c++-logger branch May 22, 2018 18:59
BewareMyPower added a commit to BewareMyPower/pulsar-client-cpp that referenced this pull request Jun 13, 2023
### Motivation

See apache/pulsar#1827, which also marked the
log4cxx configurations as deprecated.

### Modifications

Remove all log4cxx related stuff. log4cxx users can implement their own
`LoggerFactory` like the built-in implementation before this PR.
BewareMyPower added a commit to BewareMyPower/pulsar-client-cpp that referenced this pull request Jun 13, 2023
### Motivation

See apache/pulsar#1827, which also marked the
log4cxx configurations as deprecated.

### Modifications

Remove all log4cxx related stuff. log4cxx users can implement their own
`LoggerFactory` like the built-in implementation before this PR.
shibd pushed a commit to apache/pulsar-client-cpp that referenced this pull request Jun 13, 2023
* Remove log4cxx dependency and its specified configuration

### Motivation

See apache/pulsar#1827, which also marked the
log4cxx configurations as deprecated.

### Modifications

Remove all log4cxx related stuff. log4cxx users can implement their own
`LoggerFactory` like the built-in implementation before this PR.

* Fix Windows compilation error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type/enhancement The enhancements for the existing features or docs. e.g. reduce memory usage of the delayed messages

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants