Log4cplus: SocketAppender logging server











up vote
1
down vote

favorite












I wish to better understand the way the Log4cplus SocketAppender works with regard to the logging server that recieves this appender events.



I read the Log4cplus src code for loggingserver and socketappender and I will be glad to be clarified:



Can the SocketAppender only send events to the Log4cplus logging server, and not to any other server?
and if this is the case: does it mean that if I want to send log messages to remote machine, that machine must be installed with the Log4cplus lib?



I would also like to know- does this Log4cplus logging-server run as a service? and does it require special configuration and pre-setup in order to use it?










share|improve this question




























    up vote
    1
    down vote

    favorite












    I wish to better understand the way the Log4cplus SocketAppender works with regard to the logging server that recieves this appender events.



    I read the Log4cplus src code for loggingserver and socketappender and I will be glad to be clarified:



    Can the SocketAppender only send events to the Log4cplus logging server, and not to any other server?
    and if this is the case: does it mean that if I want to send log messages to remote machine, that machine must be installed with the Log4cplus lib?



    I would also like to know- does this Log4cplus logging-server run as a service? and does it require special configuration and pre-setup in order to use it?










    share|improve this question


























      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      I wish to better understand the way the Log4cplus SocketAppender works with regard to the logging server that recieves this appender events.



      I read the Log4cplus src code for loggingserver and socketappender and I will be glad to be clarified:



      Can the SocketAppender only send events to the Log4cplus logging server, and not to any other server?
      and if this is the case: does it mean that if I want to send log messages to remote machine, that machine must be installed with the Log4cplus lib?



      I would also like to know- does this Log4cplus logging-server run as a service? and does it require special configuration and pre-setup in order to use it?










      share|improve this question















      I wish to better understand the way the Log4cplus SocketAppender works with regard to the logging server that recieves this appender events.



      I read the Log4cplus src code for loggingserver and socketappender and I will be glad to be clarified:



      Can the SocketAppender only send events to the Log4cplus logging server, and not to any other server?
      and if this is the case: does it mean that if I want to send log messages to remote machine, that machine must be installed with the Log4cplus lib?



      I would also like to know- does this Log4cplus logging-server run as a service? and does it require special configuration and pre-setup in order to use it?







      sockets server log4cplus






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 10 at 7:52

























      asked Nov 9 at 19:50









      N.avraham

      10518




      10518
























          1 Answer
          1






          active

          oldest

          votes

















          up vote
          1
          down vote



          accepted











          Can the SocketAppender only send events to the Log4cplus logging server, and not to any other server?




          Yes and yes.




          does it mean that if I want to send log messages to remote machine, that machine must be installed with the Log4cplus lib?




          Well, sort of. If you want to use only SocketAppender, you will have to use the logging server. You could also use SysLogAppender and send to remote server using that. Obviously, you have to have syslog service and allow receiving from network in it. You could also write your own custom appender that sends the events to whatever server you desire.




          I would also like to know- does this Log4cplus logging-server run as a service?




          No, it is a simple executable that listens on a socket.




          and does it require special configuration and pre-setup in order to use it?




          It requires configuration file so that it knows where to log the events.






          share|improve this answer





















            Your Answer






            StackExchange.ifUsing("editor", function () {
            StackExchange.using("externalEditor", function () {
            StackExchange.using("snippets", function () {
            StackExchange.snippets.init();
            });
            });
            }, "code-snippets");

            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "1"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














             

            draft saved


            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53232412%2flog4cplus-socketappender-logging-server%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            1
            down vote



            accepted











            Can the SocketAppender only send events to the Log4cplus logging server, and not to any other server?




            Yes and yes.




            does it mean that if I want to send log messages to remote machine, that machine must be installed with the Log4cplus lib?




            Well, sort of. If you want to use only SocketAppender, you will have to use the logging server. You could also use SysLogAppender and send to remote server using that. Obviously, you have to have syslog service and allow receiving from network in it. You could also write your own custom appender that sends the events to whatever server you desire.




            I would also like to know- does this Log4cplus logging-server run as a service?




            No, it is a simple executable that listens on a socket.




            and does it require special configuration and pre-setup in order to use it?




            It requires configuration file so that it knows where to log the events.






            share|improve this answer

























              up vote
              1
              down vote



              accepted











              Can the SocketAppender only send events to the Log4cplus logging server, and not to any other server?




              Yes and yes.




              does it mean that if I want to send log messages to remote machine, that machine must be installed with the Log4cplus lib?




              Well, sort of. If you want to use only SocketAppender, you will have to use the logging server. You could also use SysLogAppender and send to remote server using that. Obviously, you have to have syslog service and allow receiving from network in it. You could also write your own custom appender that sends the events to whatever server you desire.




              I would also like to know- does this Log4cplus logging-server run as a service?




              No, it is a simple executable that listens on a socket.




              and does it require special configuration and pre-setup in order to use it?




              It requires configuration file so that it knows where to log the events.






              share|improve this answer























                up vote
                1
                down vote



                accepted







                up vote
                1
                down vote



                accepted







                Can the SocketAppender only send events to the Log4cplus logging server, and not to any other server?




                Yes and yes.




                does it mean that if I want to send log messages to remote machine, that machine must be installed with the Log4cplus lib?




                Well, sort of. If you want to use only SocketAppender, you will have to use the logging server. You could also use SysLogAppender and send to remote server using that. Obviously, you have to have syslog service and allow receiving from network in it. You could also write your own custom appender that sends the events to whatever server you desire.




                I would also like to know- does this Log4cplus logging-server run as a service?




                No, it is a simple executable that listens on a socket.




                and does it require special configuration and pre-setup in order to use it?




                It requires configuration file so that it knows where to log the events.






                share|improve this answer













                Can the SocketAppender only send events to the Log4cplus logging server, and not to any other server?




                Yes and yes.




                does it mean that if I want to send log messages to remote machine, that machine must be installed with the Log4cplus lib?




                Well, sort of. If you want to use only SocketAppender, you will have to use the logging server. You could also use SysLogAppender and send to remote server using that. Obviously, you have to have syslog service and allow receiving from network in it. You could also write your own custom appender that sends the events to whatever server you desire.




                I would also like to know- does this Log4cplus logging-server run as a service?




                No, it is a simple executable that listens on a socket.




                and does it require special configuration and pre-setup in order to use it?




                It requires configuration file so that it knows where to log the events.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Nov 10 at 23:29









                wilx

                13k34289




                13k34289






























                     

                    draft saved


                    draft discarded



















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53232412%2flog4cplus-socketappender-logging-server%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Full-time equivalent

                    Bicuculline

                    さくらももこ