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

Side by Side Diff: pkg/logging/lib/logging.dart

Issue 23220007: Update meta and logging library descriptions; tweak fixnum (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: incorporate mem's comment Created 7 years, 4 months 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 | Annotate | Revision Log
« no previous file with comments | « pkg/fixnum/lib/fixnum.dart ('k') | pkg/meta/lib/meta.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 /** 5 /**
6 * Provides APIs for debugging and error logging. This library introduces 6 * Support for debugging and error logging.
7 * abstractions similar to those used in other languages, such as the Closure JS 7 *
8 * This library introduces abstractions similar to
9 * those used in other languages, such as the Closure JS
8 * Logger and java.util.logging.Logger. 10 * Logger and java.util.logging.Logger.
9 * 11 *
10 * ## Installing ## 12 * For information on installing and importing this library, see the
11 * 13 * [logging package on pub.dartlang.org]
12 * Use [pub][] to install this package. Add the following to your `pubspec.yaml` 14 * (http://pub.dartlang.org/packages/logging).
13 * file.
14 *
15 * dependencies:
16 * logging: any
17 *
18 * Then run `pub install`.
19 *
20 * For more information, see the
21 * [logging package on pub.dartlang.org][pkg].
22 *
23 * [pub]: http://pub.dartlang.org
24 * [pkg]: http://pub.dartlang.org/packages/logging
25 */ 15 */
26 library logging; 16 library logging;
27 17
28 import 'dart:async'; 18 import 'dart:async';
29 19
30 /** 20 /**
31 * Whether to allow fine-grain logging and configuration of loggers in a 21 * Whether to allow fine-grain logging and configuration of loggers in a
32 * hierarchy. When false, all logging is merged in the root logger. 22 * hierarchy. When false, all logging is merged in the root logger.
33 */ 23 */
34 bool hierarchicalLoggingEnabled = false; 24 bool hierarchicalLoggingEnabled = false;
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 304
315 static int _nextNumber = 0; 305 static int _nextNumber = 0;
316 306
317 /** Associated exception (if any) when recording errors messages. */ 307 /** Associated exception (if any) when recording errors messages. */
318 var exception; 308 var exception;
319 309
320 LogRecord(this.level, this.message, this.loggerName, [this.exception]) 310 LogRecord(this.level, this.message, this.loggerName, [this.exception])
321 : time = new DateTime.now(), 311 : time = new DateTime.now(),
322 sequenceNumber = LogRecord._nextNumber++; 312 sequenceNumber = LogRecord._nextNumber++;
323 } 313 }
OLDNEW
« no previous file with comments | « pkg/fixnum/lib/fixnum.dart ('k') | pkg/meta/lib/meta.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698