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

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

Issue 70073003: Combine unmodifiable_collection package into collection_helpers. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Remove references from other packages. Created 7 years, 1 month 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/collection_helpers/test/unmodifiable_collection_test.dart ('k') | pkg/logging/pubspec.yaml » ('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 * Support for logging. 6 * Support for logging.
7 * 7 *
8 * For information on installing and importing this library, see the 8 * For information on installing and importing this library, see the
9 * [logging package on pub.dartlang.org] 9 * [logging package on pub.dartlang.org]
10 * (http://pub.dartlang.org/packages/logging). 10 * (http://pub.dartlang.org/packages/logging).
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 * log.fine('Got the result: $result'); 44 * log.fine('Got the result: $result');
45 * processResult(result); 45 * processResult(result);
46 * }) 46 * })
47 * .catchError((e, stackTrace) => log.severe('Oh noes!', e, stackTrace)); 47 * .catchError((e, stackTrace) => log.severe('Oh noes!', e, stackTrace));
48 * 48 *
49 * See the [Logger] class for the different logging methods. 49 * See the [Logger] class for the different logging methods.
50 */ 50 */
51 library logging; 51 library logging;
52 52
53 import 'dart:async'; 53 import 'dart:async';
54 import 'package:unmodifiable_collection/unmodifiable_collection.dart'; 54 import 'package:collection_helpers/wrappers.dart';
55 55
56 /** 56 /**
57 * Whether to allow fine-grain logging and configuration of loggers in a 57 * Whether to allow fine-grain logging and configuration of loggers in a
58 * hierarchy. When false, all logging is merged in the root logger. 58 * hierarchy. When false, all logging is merged in the root logger.
59 */ 59 */
60 bool hierarchicalLoggingEnabled = false; 60 bool hierarchicalLoggingEnabled = false;
61 61
62 /** 62 /**
63 * Level for the root-logger. This will be the level of all loggers if 63 * Level for the root-logger. This will be the level of all loggers if
64 * [hierarchicalLoggingEnabled] is false. 64 * [hierarchicalLoggingEnabled] is false.
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
347 /** Associated stackTrace (if any) when recording errors messages. */ 347 /** Associated stackTrace (if any) when recording errors messages. */
348 final StackTrace stackTrace; 348 final StackTrace stackTrace;
349 349
350 LogRecord(this.level, this.message, this.loggerName, [this.error, 350 LogRecord(this.level, this.message, this.loggerName, [this.error,
351 this.stackTrace]) 351 this.stackTrace])
352 : time = new DateTime.now(), 352 : time = new DateTime.now(),
353 sequenceNumber = LogRecord._nextNumber++; 353 sequenceNumber = LogRecord._nextNumber++;
354 354
355 String toString() => '[${level.name}] $loggerName: $message'; 355 String toString() => '[${level.name}] $loggerName: $message';
356 } 356 }
OLDNEW
« no previous file with comments | « pkg/collection_helpers/test/unmodifiable_collection_test.dart ('k') | pkg/logging/pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698