Skip to content

Commit

Permalink
docs: fix simple typo, ouput -> output
Browse files Browse the repository at this point in the history
There is a small typo in README.md, src/level_list.h, src/rule.h, src/zlog.c.

Should read `output` rather than `ouput`.
  • Loading branch information
timgates42 committed Nov 28, 2020
1 parent 876099f commit 4e77dfd
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ In the configuration file log messages in the category "my_cat" and a level of D
-------------
* syslog model, better than log4j model
* log format customization
* multiple output destinations including static file path, dynamic file path, stdout, stderr, syslog, user-defined ouput
* multiple output destinations including static file path, dynamic file path, stdout, stderr, syslog, user-defined output
* runtime manually or automatically refresh configure(safely)
* high-performance, 250'000 logs/second on my laptop, about 1000 times faster than syslog(3) with rsyslogd
* user-defined log level
Expand Down
2 changes: 1 addition & 1 deletion src/level_list.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ void zlog_level_list_profile(zc_arraylist_t *levels, int flag);
/* if l is wrong or str=="", return -1 */
int zlog_level_list_set(zc_arraylist_t *levels, char *line);

/* spec ouput use, fast */
/* spec output use, fast */
/* rule output use, fast */
/* if not found, return levels[254] */
zlog_level_t *zlog_level_list_get(zc_arraylist_t *levels, int l);
Expand Down
2 changes: 1 addition & 1 deletion src/rule.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ struct zlog_rule_s {
* [!] log level != rule level
*/
int level;
unsigned char level_bitmap[32]; /* for category determine whether ouput or not */
unsigned char level_bitmap[32]; /* for category determine whether output or not */

unsigned int file_perms;
int file_open_flags;
Expand Down
2 changes: 1 addition & 1 deletion src/zlog.c
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,7 @@ void vzlog(zlog_category_t * category,
* but it is safe, the bitmap is valid as long as category exist,
* And will be the right value after zlog_reload()
*
* For speed up, if one log will not be ouput,
* For speed up, if one log will not be output,
* There is no need to aquire rdlock.
*/
if (zlog_category_needless_level(category, level)) return;
Expand Down

0 comments on commit 4e77dfd

Please sign in to comment.