Skip to content

Commit

Permalink
update default pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
L1MeN9Yu committed Dec 6, 2019
1 parent d7c3390 commit 8a1742c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ As a dynamic library dependency,add 'Senna' as the library name in the filter.

See spdlog wiki : [Custom formatting](https://github.com/gabime/spdlog/wiki/3.-Custom-formatting)

The default pattern is : `[%D %T] [%=10n] %^[pid : %P] [tid : %t] [%8l] %v%$`
The default pattern is : `[%D %T] [%=10n] %^[pid : %P] [tid : %t] [%5l] %v%$`

### Frontend format

Expand Down
2 changes: 1 addition & 1 deletion Source/Backend/SennaContext/SennaContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ SennaContext::SennaContext() {
});

p_default_logger = spdlog::stdout_color_mt(default_logger_name);
p_default_logger->set_pattern("[%D %T] [%=10n] %^[pid : %P] [tid : %t] [%8l] %v%$");
p_default_logger->set_pattern("[%D %T] [%=10n] %^[pid : %P] [tid : %t] [%5l] %v%$");
p_default_logger->set_level(spdlog::level::trace);
p_default_logger->trace("Senna Start Succeed ! [spdlog version {}.{}.{} !] [fmt version {} !]", SPDLOG_VER_MAJOR, SPDLOG_VER_MINOR, SPDLOG_VER_PATCH, FMT_VERSION);
spdlog::set_default_logger(p_default_logger);
Expand Down
2 changes: 1 addition & 1 deletion Source/Frontend/Senna.swift
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ var __messageConvert: MessageConvert = { message, filename, function, line in
return allMessage
}

public let DefaultPattern = "[%D %T] [%=10n] %^[pid : %P] [tid : %t] [%8l] %v%$"
public let DefaultPattern = "[%D %T] [%=10n] %^[pid : %P] [tid : %t] [%5l] %v%$"

public func shutDown() {
senna_shutdown()
Expand Down

0 comments on commit 8a1742c

Please sign in to comment.