Coder Social home page Coder Social logo

logmaster4net's Introduction

LogMaster4Net

LogMaster4Net is a central log server which can receive log messages of your other applications and organize them as your demand. It can help you to manage your all applications log messages in a central place. So if you have lots of different applications running and most of them have their own logging, this project will be pretty useful for you.

LogMaster4Net actually is a UDP server which is base on SuperSocket

  1. Server Configuration

     <server name="LogMasterServer"
             serverType="LogMaster4Net.MasterServer.LogMasterServer, LogMaster4Net.MasterServer"
             ip="Any" port="2020" mode="Udp"
             maxConnectionNumber="100"
     		clearIdleSession="true"
     		idleSessionTimeOut="3600"
     		clearIdleSessionInterval="600"
     		maxRequestLength="40960"
             receiveBufferSize="40960">
     </server>
    
  2. Server Logging Configuration

     \Config\log4net.config: the logging confuguration of the server self;
     \Config\log4net.[LogAppName].Config : the logging configuration for your application whose name is [LogAppName]};
    
  3. Application Setting

    • Set LogAppName

        log4net.GlobalContext.Properties["LogAppName"] = "MyTool1";
      
    • Logging Configuration

        <appender name="udpAppender" type="log4net.Appender.UdpAppender">
          <remoteAddress value="[ServerAddress]" />
          <remotePort value="2020" />
          <layout type="log4net.Layout.XmlLayout">
              <locationInfo value="true" />
          </layout>
        </appender>
      

The logging framework used by the log server and applications must be log4net. LogMaster4Net will support other logging frameworks later.

logmaster4net's People

Contributors

kerryjiang avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.