Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(656)

Side by Side Diff: mojo/services/log/interfaces/entry.mojom

Issue 1447273002: Mojo Log service and a thread-safe client library. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: removed environment & bindings changes from previous patchset. remove unused mojo::log::EntryMetad… Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 module mojo.log;
6
7 // Log levels: Levels less than |kLogLevelVerbose| are valid and indicate
8 // greater levels of verbosity. Levels greater than |kLogLevelFatal| are
9 // invalid and should be taken to be equivalent to |kLogLevelFatal|.
viettrungluu 2015/11/20 23:21:51 Then they're not invalid, are they? Just say that
vardhan 2015/12/02 00:06:13 Done.
10
viettrungluu 2015/11/20 23:21:51 nit: no blank line here
vardhan 2015/12/02 00:06:13 Done.
11 const int32 kLogLevelVerbose = -1;
12 const int32 kLogLevelInfo = 0;
13 const int32 kLogLevelWarning = 1;
14 const int32 kLogLevelError = 2;
15 const int32 kLogLevelFatal = 3;
16
17 // Describes a log message and its origin in source code. It is used by the
viettrungluu 2015/11/20 23:21:51 The origin in source code is entirely incidental;
vardhan 2015/12/02 00:06:13 I'll remove this bit then.
18 // |mojo::log::Log| service (see log.mojom).
19 struct Entry {
20 // Client-side timestamp.
21 int64 timestamp;
22 // Log level: one of |kLogLevel...|.
viettrungluu 2015/11/20 23:21:51 Not necessarily, as indicated by the comment above
vardhan 2015/12/02 00:06:13 Done.
23 int32 log_level;
24
25 // The client source location this log originated from.
26 string? source_file;
27 uint32 source_line = 0;
viettrungluu 2015/11/20 23:21:51 Should comment that: - This is a 1-based line numb
vardhan 2015/12/02 00:06:13 Done.
28
29 string? message;
viettrungluu 2015/11/20 23:21:51 |message| should come before source_file and sourc
vardhan 2015/12/02 00:06:13 Done.
30 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698