Skip to content

Commit

Permalink
use st sink for spdlog
Browse files Browse the repository at this point in the history
  • Loading branch information
ingangi committed May 21, 2019
1 parent 5217be2 commit 6a7dd39
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions todo.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
> third party APIs (mysql client etc.)
## tcp server/client based on epoll

## share chroutine stack

# Low priority
Expand Down
2 changes: 1 addition & 1 deletion util/logger.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class logger_t
{
private:
logger_t(){
_async_file = ::spdlog::daily_logger_mt<::spdlog::async_factory_nonblock>("ENGINE", "ENGINE.log", 0, 0);
_async_file = ::spdlog::daily_logger_st<::spdlog::async_factory_nonblock>("ENGINE", "ENGINE.log", 0, 0);

#ifdef DEBUG_BUILD
_console = ::spdlog::stdout_color_mt("console");
Expand Down

0 comments on commit 6a7dd39

Please sign in to comment.