#include <sys/types.h>#include <sys/stat.h>#include <fcntl.h>#include <unistd.h>#include <stdio.h>#include <stdarg.h>#include <string.h>#include <errno.h>#include <time.h>Go to the source code of this file.
Functions | |
| char * | dater () |
| Return the current date as Apache's standard. More... | |
| void | init_syslogger () |
| Initialize the logging system. More... | |
| void | logging_new_tag () |
| Increment the value of the current tag. More... | |
| char * | logger_last_error () |
| Return the last error message. More... | |
| void | activate_log_size_management () |
| Activate the log size management. | |
| int | my_syslog (const char *file, const char *fmt,...) |
| Log one line in a given log file. More... | |
| int | my_syslog_skip_line (const char *file) |
| Log 2 empty lines in a given log file. More... | |
| void | logger_set_gateway (const char *g) |
| Set the gateway for tag. More... | |
| void | init_client_ids (char *mac, char *vnode_id, unsigned long int vshelf, unsigned long int vslot, unsigned long int vport, unsigned short int vvci, unsigned short int vvlan_id) |
| Initialize the client's identifier. More... | |
Definition in file logging.h.
|
|
Return the current date as Apache's standard.
Definition at line 213 of file logging.c. References MAX_TIME_SIZE. Referenced by log_profile(), my_syslog(), and packet_dump(). |
|
||||||||||||||||||||||||||||||||
|
Initialize the client's identifier.
Definition at line 160 of file logging.c. References current_mac_address, gateway, GATEWAY_IP_MAX_SIZE, MAC_ADDRESS_DOTED_SIZE, node_id, NODE_ID_MAX_SIZE, port, shelf, slot, vci, and vlan_id. Referenced by main(). |
|
|
Initialize the logging system.
Definition at line 182 of file logging.c. References current_mac_address, gateway, GATEWAY_IP_MAX_SIZE, MAC_ADDRESS_DOTED_SIZE, node_id, and NODE_ID_MAX_SIZE. Referenced by main(). |
|
|
Return the last error message.
Definition at line 105 of file logging.c. References last_error. |
|
|
Set the gateway for tag.
Definition at line 356 of file logging.c. References gateway, and GATEWAY_IP_MAX_SIZE. Referenced by main(). |
|
|
Increment the value of the current tag.
Definition at line 131 of file logging.c. References current_mac_address, current_tag, gateway, GATEWAY_IP_MAX_SIZE, MAC_ADDRESS_DOTED_SIZE, node_id, NODE_ID_MAX_SIZE, port, shelf, slot, vci, and vlan_id. Referenced by main(). |
|
||||||||||||||||
|
Log one line in a given log file.
Definition at line 277 of file logging.c. References clear_last_error(), current_mac_address, dater(), filetimestamp(), gateway, get_file_size(), log_tag(), logger_set_last_error(), MAXLOGFILESIZE, node_id, port, shelf, slot, vci, and vlan_id. Referenced by add_option_to_profile(), ascii_to_binary(), connect_to_mysql(), context2profile(), create_socket(), dump_packet_hexa(), find_ip_and_reply(), get_unix_timestamp(), haddr_to_hexa(), hexa_to_binary(), ip_to_network_byte_order(), load_mysql_configuration_from_file(), look_up_logistic(), main(), packet_dump(), packets_parse_options(), packets_send_ack(), packets_send_dummy_nak(), packets_send_nack(), packets_send_offer(), remove_option_from_profile(), reply_to_inform(), sql_select(), standard_query(), uint16_to_network_byte_order(), and uint32_to_network_byte_order(). |
|
|
Log 2 empty lines in a given log file.
Definition at line 368 of file logging.c. References clear_last_error(), and logger_set_last_error(). Referenced by main(). |
1.2.15