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

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

Issue 48293002: Remove @deprecated features. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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
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 debugging and error logging. 6 * Support for debugging and error logging.
7 * 7 *
8 * This library introduces abstractions similar to those used in other 8 * This library introduces abstractions similar to those used in other
9 * languages, such as the Closure JS Logger and java.util.logging.Logger. 9 * languages, such as the Closure JS Logger and java.util.logging.Logger.
10 * 10 *
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 final DateTime time; 302 final DateTime time;
303 303
304 /** Unique sequence number greater than all log records created before it. */ 304 /** Unique sequence number greater than all log records created before it. */
305 final int sequenceNumber; 305 final int sequenceNumber;
306 306
307 static int _nextNumber = 0; 307 static int _nextNumber = 0;
308 308
309 /** Associated error (if any) when recording errors messages. */ 309 /** Associated error (if any) when recording errors messages. */
310 final Object error; 310 final Object error;
311 311
312 // TODO(kevmoo) - remove before V1
313 /**
314 * DEPRECATED. Use [error] instead.
315 */
316 @deprecated
317 Object get exception => error;
318
319 /** Associated stackTrace (if any) when recording errors messages. */ 312 /** Associated stackTrace (if any) when recording errors messages. */
320 final StackTrace stackTrace; 313 final StackTrace stackTrace;
321 314
322 LogRecord(this.level, this.message, this.loggerName, [this.error, 315 LogRecord(this.level, this.message, this.loggerName, [this.error,
323 this.stackTrace]) 316 this.stackTrace])
324 : time = new DateTime.now(), 317 : time = new DateTime.now(),
325 sequenceNumber = LogRecord._nextNumber++; 318 sequenceNumber = LogRecord._nextNumber++;
326 319
327 String toString() => '[${level.name}] $loggerName: $message'; 320 String toString() => '[${level.name}] $loggerName: $message';
328 } 321 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698