ucx/logging.h

changeset 124
80609f9675f1
parent 0
1f419bd32da1
child 152
62921b370c60
equal deleted inserted replaced
123:55adc92e7c09 124:80609f9675f1
1 /* 1 /*
2 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 2 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
3 * 3 *
4 * Copyright 2013 Olaf Wintermann. All rights reserved. 4 * Copyright 2015 Olaf Wintermann. All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are met: 7 * modification, are permitted provided that the following conditions are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
95 * (default). 95 * (default).
96 */ 96 */
97 write_func writer; 97 write_func writer;
98 98
99 /** 99 /**
100 * The date format for timestamp outputs 100 * The date format for timestamp outputs including the delimiter
101 * (default: <code>"%F %T %z "</code>). 101 * (default: <code>"%F %T %z "</code>).
102 * @see UCX_LOGGER_TIMESTAMP 102 * @see UCX_LOGGER_TIMESTAMP
103 */ 103 */
104 char *dateformat; 104 char *dateformat;
105 105
160 * format is: 160 * format is:
161 * 161 *
162 * <code>[LEVEL] [TIMESTAMP] [SOURCEFILE]:[LINENO] message</code> 162 * <code>[LEVEL] [TIMESTAMP] [SOURCEFILE]:[LINENO] message</code>
163 * 163 *
164 * <b>Attention:</b> the message (including automatically generated information) 164 * <b>Attention:</b> the message (including automatically generated information)
165 * <b>MUST NOT</b> exceed the size of 4 KB. 165 * is limited to 4096 characters. The level description is limited to
166 * 256 characters and the timestamp string is limited to 128 characters.
166 * 167 *
167 * @param logger the logger to use 168 * @param logger the logger to use
168 * @param level the level to log on 169 * @param level the level to log on
169 * @param file information about the source file 170 * @param file information about the source file
170 * @param line information about the source line number 171 * @param line information about the source line number

mercurial