Ignore:
Timestamp:
01/08/2007 00:18:50 (5 years ago)
Author:
chris
Message:

Replace almost all calls to syslog() with logging framework. (merges [1783])

File:
1 edited

Legend:

Unmodified
Added
Removed
  • box/chris/general/lib/server/Socket.cpp

    r456 r1784  
    1818#include <sys/socket.h> 
    1919#include <netdb.h> 
    20 #include <syslog.h> 
    2120#include <netinet/in.h> 
    2221#include <arpa/inet.h> 
     
    125124        { 
    126125        case AF_UNIX: 
    127                 ::syslog(LOG_INFO, "Incoming connection from local (UNIX socket)"); 
     126                BOX_INFO("Incoming connection from local (UNIX socket)"); 
    128127                break;           
    129128         
     
    131130                { 
    132131                        sockaddr_in *a = (sockaddr_in*)addr; 
    133                         ::syslog(LOG_INFO, "Incoming connection from %s port %d", inet_ntoa(a->sin_addr), ntohs(a->sin_port)); 
     132                        BOX_INFO("Incoming connection from " << 
     133                                inet_ntoa(a->sin_addr) << " port " << 
     134                                ntohs(a->sin_port)); 
    134135                } 
    135136                break;           
    136137         
    137138        default: 
    138                 ::syslog(LOG_INFO, "Incoming connection of unknown type"); 
     139                BOX_WARNING("Incoming connection of unknown type"); 
    139140                break; 
    140141        } 
Note: See TracChangeset for help on using the changeset viewer.