Projects
Browse Source     Search     Timeline     Wiki

Changeset 23362

Show
Ignore:
Timestamp:
09/09/07 12:09:56 (15 months ago)
Author:
zarzycki@…
Message:

Small logging updates.

Location:
trunk/launchd/src
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/launchd/src/launchd_runtime.c

    r23359 r23362  
    147147        launchd_assert(pthread_create(&demand_thread, &attr, mport_demand_loop, NULL) == 0); 
    148148        pthread_attr_destroy(&attr); 
    149  
    150         runtime_openlog(getprogname(), LOG_PID|LOG_CONS, LOG_LAUNCHD); 
    151         runtime_setlogmask(LOG_UPTO(/* LOG_DEBUG */ LOG_NOTICE)); 
    152149} 
    153150 
     
    10281025 
    10291026void 
    1030 runtime_openlog(const char *ident, int logopt, int facility) 
    1031 { 
    1032         openlog(ident, logopt, facility); 
    1033 } 
    1034  
    1035 void 
    10361027runtime_closelog(void) 
    10371028{ 
     
    10521043} 
    10531044 
    1054 static int internal_mask_pri; 
     1045static int internal_mask_pri = LOG_UPTO(LOG_NOTICE); 
     1046//static int internal_mask_pri = LOG_UPTO(LOG_DEBUG); 
    10551047 
    10561048int 
  • trunk/launchd/src/launchd_runtime.h

    r23359 r23362  
    7878pid_t runtime_fork(mach_port_t bsport); 
    7979 
    80 void runtime_openlog(const char *ident, int logopt, int facility); 
    81 void runtime_closelog(void); 
    8280kern_return_t runtime_log_forward(uid_t forward_uid, gid_t forward_gid, vm_offset_t inval, mach_msg_type_number_t invalCnt); 
    8381kern_return_t runtime_log_drain(mach_port_t srp, vm_offset_t *outval, mach_msg_type_number_t *outvalCnt); 
     
    9694 
    9795int runtime_setlogmask(int maskpri); 
     96void runtime_closelog(void); 
    9897void runtime_syslog(int pri, const char *message, ...) __attribute__((format(printf, 2, 3))); 
    9998void runtime_vsyslog(struct runtime_syslog_attr *attr, const char *message, va_list args) __attribute__((format(printf, 2, 0)));