Menu

#313 is there any relation between log4cplus and log4perl

v1.1.3
closed
5
2016-03-16
2014-10-07
AshishGaur
No

Hi,

I was wondering if there is any relation between log4cplus and log4perl? If not, is there any particular way where log4cplus can be used with perl???

Discussion

  • Václav Haisman

    Václav Haisman - 2014-10-07

    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.

     
    • AshishGaur

      AshishGaur - 2014-10-07

      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
      • Václav Haisman

        Václav Haisman - 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.

         
        • AshishGaur

          AshishGaur - 2014-10-07

          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
  • Václav Haisman

    Václav Haisman - 2014-10-07
    • assigned_to: Václav Zeman
     
  • Václav Haisman

    Václav Haisman - 2016-03-16
    • labels: log4perl, log4cplus --> log4perl, log4cplus, question
    • status: open --> closed
     

Log in to post a comment.

Auth0 Logo