|
Mojo Log service and a thread-safe client library.
The service impl itself is pretty thin and does what we currently already do: print messages to stderr.
The log client provides a MojoLogger (you can hook this up to mojo::Environment and have MOJO_LOG() go directly to the Log service), and is thread-safe.
Other small changes to acommodate this CL:
- mojo::Environment now has SetDefaultLogger() for replacing the logger.
- Move mojo::internal::MessageBuilder out of internal namespace.
R=viettrungluu@chromium.org
Committed: https://chromium.googlesource.com/external/mojo/+/bb3649854a7d7a5ec4c0c42055108b4d174cb151
Total comments: 2
Total comments: 3
Total comments: 45
Total comments: 2
Total comments: 6
Total comments: 2
Total comments: 28
Total comments: 14
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+753 lines, -39 lines) |
Patch |
 |
M |
PRESUBMIT.py
|
View
|
1
2
3
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
mojo/BUILD.gn
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
A + |
mojo/services/log/cpp/BUILD.gn
|
View
|
|
2 chunks |
+13 lines, -20 lines |
0 comments
|
Download
|
 |
A |
mojo/services/log/cpp/lib/log_client.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
|
1 chunk |
+170 lines, -0 lines |
0 comments
|
Download
|
 |
A |
mojo/services/log/cpp/log_client.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
|
1 chunk |
+56 lines, -0 lines |
0 comments
|
Download
|
 |
A |
mojo/services/log/cpp/tests/log_client_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
|
1 chunk |
+122 lines, -0 lines |
0 comments
|
Download
|
 |
A + |
mojo/services/log/interfaces/BUILD.gn
|
View
|
|
1 chunk |
+2 lines, -5 lines |
0 comments
|
Download
|
 |
A |
mojo/services/log/interfaces/entry.mojom
|
View
|
1
2
3
4
|
1 chunk |
+34 lines, -0 lines |
0 comments
|
Download
|
 |
A |
mojo/services/log/interfaces/log.mojom
|
View
|
1
2
3
4
|
1 chunk |
+13 lines, -0 lines |
0 comments
|
Download
|
 |
M |
mojo/services/mojo_services.gni
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
mojo/tools/data/apptests
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
services/BUILD.gn
|
View
|
1
2
3
4
5
6
7
8
9
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
A |
services/log/BUILD.gn
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+51 lines, -0 lines |
0 comments
|
Download
|
 |
A |
services/log/log_impl.h
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+60 lines, -0 lines |
0 comments
|
Download
|
 |
A |
services/log/log_impl.cc
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+96 lines, -0 lines |
0 comments
|
Download
|
 |
A |
services/log/log_impl_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
|
1 chunk |
+106 lines, -0 lines |
0 comments
|
Download
|
 |
A + |
services/log/main.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+19 lines, -14 lines |
0 comments
|
Download
|
Total messages: 22 (2 generated)
|