Syslog client for mbed-os 5
Fork of logger by
Diff: logger.cpp
- Revision:
- 1:f7e32e99f366
- Parent:
- 0:7d428b9b277e
- Child:
- 2:ce978c9ea3e8
diff -r 7d428b9b277e -r f7e32e99f366 logger.cpp --- a/logger.cpp Sat Apr 16 08:48:55 2011 +0000 +++ b/logger.cpp Sat Apr 16 15:34:45 2011 +0000 @@ -12,11 +12,6 @@ static const char mstr[12][4] = {"May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"}; -/** - * @brief init - * @param p_eth EthernetNetIf class - * @param host syslog collctor (server) - */ logger::logger (EthernetNetIf *p_eth, char *host) { IpAddr addr; char name[20]; @@ -27,12 +22,6 @@ logger(p_eth, host, name); } -/** - * @brief init - * @param p_eth EthernetNetIf class - * @param host syslog collctor (server) hostname or IP address - * @param myname My hostname or IP address - */ logger::logger (EthernetNetIf *p_eth, char *host, char *myname) { int ip0, ip1, ip2, ip3; @@ -53,22 +42,10 @@ udpsock->bind(Host(eth->getIp(), LOG_UDPPORT)); } -/** - * @brief Send the message - * @param tag Process name - * @param content Message - */ void logger::send (char *tag, char *content) { send(LOG_NOTICE, LOG_USER, tag, content); } -/** - * @brief Send the message - * @param sev Severity - * @param fac Facility - * @param tag Process name - * @param content Message - */ void logger::send (LOG_SEVERITY sev, LOG_FACILITY fac, char *tag, char *content) { int pri, len; time_t ctTime;