KeDeng has uploaded this change for review. ( http://gerrit.cloudera.org:8080/21613
Change subject: [log] Support logging audit logs to a separate file ...................................................................... [log] Support logging audit logs to a separate file Currently, audit logs and regular logs are recorded together, but if we need to track audit activities, there's a high likelihood that audit logs might be lost due to interference from other logs. By researching how to use glog [1], I found that we can achieve our goal by overriding the send function. In this patch, I implemented this feature to redirect audit logs. To verify this functionality, I also wrote unit tests to validate the newly added logic. [1]:https://google.github.io/glog/stable/sinks/ Change-Id: Ie5323361befb456d91a12da7273865542f1d2430 --- M src/kudu/master/CMakeLists.txt A src/kudu/master/audit_logger-test.cc A src/kudu/master/audit_logger.cc A src/kudu/master/audit_logger.h M src/kudu/master/catalog_manager.cc M src/kudu/master/master-test.cc 6 files changed, 483 insertions(+), 10 deletions(-) git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/13/21613/1 -- To view, visit http://gerrit.cloudera.org:8080/21613 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: kudu Gerrit-Branch: master Gerrit-MessageType: newchange Gerrit-Change-Id: Ie5323361befb456d91a12da7273865542f1d2430 Gerrit-Change-Number: 21613 Gerrit-PatchSet: 1 Gerrit-Owner: KeDeng <[email protected]>
