zlm新增支持编译成动态库使用

This commit is contained in:
baiyfcu
2024-07-24 14:14:56 +08:00
parent fea7f3647e
commit e389d16379
10 changed files with 212 additions and 173 deletions

View File

@@ -164,7 +164,7 @@ API_EXPORT void API_CALL mk_events_listen(const mk_events *events){
}
});
NoticeCenter::Instance().addListener(&s_tag, EventChannel::kBroadcastLogEvent,[](BroadcastLogEventArgs){
NoticeCenter::Instance().addListener(&s_tag, EventChannel::getBroadcastLogEventName(),[](BroadcastLogEventArgs){
if (s_events.on_mk_log) {
auto log = ctx->str();
s_events.on_mk_log((int) ctx->_level, ctx->_file.data(), ctx->_line, ctx->_function.data(), log.data());