-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(logger): combine Logger & formatter into TLogger
* include/logger.h: * Add structure TLogger * Add macros TLOGGER_DEFAULT & TLOGGER_DEFAULT_LVSKIP() for the TLogger default object literals * include/dao.h & lib/logger.c: * Add the default formatter logger_tag_formatter_default() * logger_tag(): * Combine the formerly 1th param `logger` & the 4th param `formatter` into the new 1th parameter `tlogger` * Use the default formatter if `tlogger->formatter` is NULL * lib/shm.c: attach_err() & bshm_init() * maple/bbsd.c: blog_pid() * maple/xchatd.c: logtalk() & logit() * include/dao.h & lib/shm.c * Replace shm_logger_init() & shm_formatter_init() with shm_tlogger_init() * maple/bbsd.c: main() * maple/xchatd.c: print_user_counts() (commented out) * Rewrite loggers with formatters into TLogger objects * lib/shm.c: shm_logger & shm_formatter -> shm_tlogger * maple/bbsd.c: blog_logger & blog_formatter -> blog_tlogger
- Loading branch information
1 parent
c05c5c9
commit 0eac429
Showing
6 changed files
with
56 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters