I was wondering if there is any relation between log4cplus and log4perl?
They both appear to be based on the same ideas (I believe) first implemented in log4j and they use name derived from log4j as well. Other than that, I am not aware of any connection.
If not, is there any particular way where log4cplus can be used with perl???
log4cplus has (rather limited) C API, which you could use to implement a Perl module.
Second option is to extend currently existing SWIG generated API from only Python to Perl as well. The API will not be complete but it allows access to much more than just the C API.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
There is enough of the API exposed in the C API to do logging and some basic configuration. However I would suggest improving the SWIG bindings instead of using the C API.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I will keep that in mind but I will have to use the C APIs for now. Can you suggest me where I can get to know about those basic configurations. I need to know about configuration related to Perl integration only.
Last edit: AshishGaur 2014-10-07
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
They both appear to be based on the same ideas (I believe) first implemented in log4j and they use name derived from log4j as well. Other than that, I am not aware of any connection.
log4cplus has (rather limited) C API, which you could use to implement a Perl module.
Second option is to extend currently existing SWIG generated API from only Python to Perl as well. The API will not be complete but it allows access to much more than just the C API.
log4cplus has (rather limited) C API, which you could use to implement a Perl module.
can these C API directly be used within the Perl code to generate log from perl itself???
Last edit: AshishGaur 2014-10-07
There is enough of the API exposed in the C API to do logging and some basic configuration. However I would suggest improving the SWIG bindings instead of using the C API.
I will keep that in mind but I will have to use the C APIs for now. Can you suggest me where I can get to know about those basic configurations. I need to know about configuration related to Perl integration only.
Last edit: AshishGaur 2014-10-07