diff options
author | Dan Albert <danalbert@google.com> | 2015-03-27 11:20:14 -0700 |
---|---|---|
committer | Dan Albert <danalbert@google.com> | 2015-04-03 16:22:39 -0700 |
commit | b547c85b5b9d7fc565e47a5d0c734c3a66af242a (patch) | |
tree | 1e9490de3134c6383da548f15186ae9f13ea5b1b /base/test_main.cpp | |
parent | ea975880112c27293800ede36e0323ff2a7b9322 (diff) | |
download | system_core-b547c85b5b9d7fc565e47a5d0c734c3a66af242a.tar.gz system_core-b547c85b5b9d7fc565e47a5d0c734c3a66af242a.tar.bz2 system_core-b547c85b5b9d7fc565e47a5d0c734c3a66af242a.zip |
Support arbitrary loggers.
While the defaults (logd or stderr) make sense for most use cases,
there are places that can only log to the kernel, or need to log to a
file, etc.
Allow the user to pass in an arbitrary logging object, and provide
LogdLogger and StderrLogger as defaults.
Change-Id: I62368acc795ff313242bb205d65017404bf64e88
Diffstat (limited to 'base/test_main.cpp')
-rw-r--r-- | base/test_main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/base/test_main.cpp b/base/test_main.cpp index c49ca4b18..546923d9b 100644 --- a/base/test_main.cpp +++ b/base/test_main.cpp @@ -20,6 +20,6 @@ int main(int argc, char** argv) { ::testing::InitGoogleTest(&argc, argv); - android::base::InitLogging(argv); + android::base::InitLogging(argv, android::base::StderrLogger); return RUN_ALL_TESTS(); } |