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

Issue 10693042: first version of a logging library. (Closed)

Created:
8 years, 5 months ago by Siggi Cherem (dart-lang)
Modified:
8 years, 5 months ago
Reviewers:
gram, Jennifer Messerly
CC:
reviews_dartlang.org
Visibility:
Public.

Description

first version of a logging library. Committed: https://code.google.com/p/dart/source/detail?r=9269

Patch Set 1 : #

Total comments: 72

Patch Set 2 : addressing cl comments #

Total comments: 6

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+670 lines, -0 lines) Patch
A lib/logging/logging.dart View 1 2 1 chunk +334 lines, -0 lines 0 comments Download
A tests/lib/logging/logging_test.dart View 1 2 1 chunk +336 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Siggi Cherem (dart-lang)
8 years, 5 months ago (2012-06-29 01:23:37 UTC) #1
Jennifer Messerly
mostly style comments. Overall this looks very nice! https://chromiumcodereview.appspot.com/10693042/diff/2001/lib/logging/logging.dart File lib/logging/logging.dart (right): https://chromiumcodereview.appspot.com/10693042/diff/2001/lib/logging/logging.dart#newcode8 lib/logging/logging.dart:8: * ...
8 years, 5 months ago (2012-06-29 03:47:45 UTC) #2
gram
https://chromiumcodereview.appspot.com/10693042/diff/2001/lib/logging/logging.dart File lib/logging/logging.dart (right): https://chromiumcodereview.appspot.com/10693042/diff/2001/lib/logging/logging.dart#newcode12 lib/logging/logging.dart:12: /** A handler that process log entries in of ...
8 years, 5 months ago (2012-06-29 16:38:25 UTC) #3
gram
https://chromiumcodereview.appspot.com/10693042/diff/2001/tests/lib/logging/logging_test.dart File tests/lib/logging/logging_test.dart (right): https://chromiumcodereview.appspot.com/10693042/diff/2001/tests/lib/logging/logging_test.dart#newcode46 tests/lib/logging/logging_test.dart:46: expect(c.parent.parent.parent.parent, isNull); On 2012/06/29 16:38:25, gram wrote: > Can ...
8 years, 5 months ago (2012-06-29 16:49:26 UTC) #4
Jennifer Messerly
https://chromiumcodereview.appspot.com/10693042/diff/2001/lib/logging/logging.dart File lib/logging/logging.dart (right): https://chromiumcodereview.appspot.com/10693042/diff/2001/lib/logging/logging.dart#newcode246 lib/logging/logging.dart:246: bool operator ==(Level other) => this === other; On ...
8 years, 5 months ago (2012-06-29 17:37:13 UTC) #5
Siggi Cherem (dart-lang)
https://chromiumcodereview.appspot.com/10693042/diff/2001/lib/logging/logging.dart File lib/logging/logging.dart (right): https://chromiumcodereview.appspot.com/10693042/diff/2001/lib/logging/logging.dart#newcode8 lib/logging/logging.dart:8: * library and java.util.logging. On 2012/06/29 03:47:45, John Messerly ...
8 years, 5 months ago (2012-06-29 18:34:48 UTC) #6
gram
lgtm with a couple of comments https://chromiumcodereview.appspot.com/10693042/diff/4002/lib/logging/logging.dart File lib/logging/logging.dart (right): https://chromiumcodereview.appspot.com/10693042/diff/4002/lib/logging/logging.dart#newcode33 lib/logging/logging.dart:33: /** The full ...
8 years, 5 months ago (2012-06-29 19:55:21 UTC) #7
Siggi Cherem (dart-lang)
https://chromiumcodereview.appspot.com/10693042/diff/4002/lib/logging/logging.dart File lib/logging/logging.dart (right): https://chromiumcodereview.appspot.com/10693042/diff/4002/lib/logging/logging.dart#newcode33 lib/logging/logging.dart:33: /** The full name of this logger, which includes ...
8 years, 5 months ago (2012-06-29 20:16:52 UTC) #8
Jennifer Messerly
8 years, 5 months ago (2012-06-29 23:00:20 UTC) #9
On 2012/06/29 20:16:52, sigmund wrote:
>
https://chromiumcodereview.appspot.com/10693042/diff/4002/lib/logging/logging...
> File lib/logging/logging.dart (right):
> 
>
https://chromiumcodereview.appspot.com/10693042/diff/4002/lib/logging/logging...
> lib/logging/logging.dart:33: /** The full name of this logger, which includes
> also the parent's names. */
> On 2012/06/29 19:55:21, gram wrote:
> > Remove 'also'
> 
> Done.
> 
>
https://chromiumcodereview.appspot.com/10693042/diff/4002/lib/logging/logging...
> lib/logging/logging.dart:35: (parent == null || parent.name == '') ? name :
> '${parent.fullName}.$name';
> On 2012/06/29 19:55:21, gram wrote:
> > What is I have three levels A, B, C, and A is named 'A', B has name '', and
C
> > has name 'C'. Now C's fullname would be 'C', which seems wrong. It's a weird
> > case I agree, but I think if you use hierarhical logging you are very likely
> > going to give each level a name and the empty name should not be treated
> > specially. 
> 
> as we discussed in person - this shouldn't be a problem because the hierarchy
is
> constructed from the names and you can't build the hierarchy by hand.
> 
> There is a cornercase when names start with a '.' making (new Logger('.foo')
===
> new Logger('foo')). I'll add a fix for that case.
> 
>
https://chromiumcodereview.appspot.com/10693042/diff/4002/lib/logging/logging...
> lib/logging/logging.dart:55: if (_loggers.containsKey(name)) return
> _loggers[name];
> On 2012/06/29 19:55:21, gram wrote:
> > you could have an "else" here.
> 
> true. as we briefly discussed :), left as is to make the code shorter.

LGTM!

Powered by Google App Engine
This is Rietveld 408576698