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

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

Issue 11362139: Update library syntax in pkg files. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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/htmlescape/lib/htmlescape.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 * Provides APIs for debugging and error logging. This library introduces
7 * abstractions similar to those used in other languages, such as the Closure JS 7 * abstractions similar to those used in other languages, such as the Closure JS
8 * Logger and java.util.logging.Logger. 8 * Logger and java.util.logging.Logger.
9 */ 9 */
10 #library('logging'); 10 library logging;
11 11
12 /** 12 /**
13 * Whether to allow fine-grain logging and configuration of loggers in a 13 * Whether to allow fine-grain logging and configuration of loggers in a
14 * hierarchy. When false, all logging is merged in the root logger. 14 * hierarchy. When false, all logging is merged in the root logger.
15 */ 15 */
16 bool hierarchicalLoggingEnabled = false; 16 bool hierarchicalLoggingEnabled = false;
17 17
18 /** 18 /**
19 * Level for the root-logger. This will be the level of all loggers if 19 * Level for the root-logger. This will be the level of all loggers if
20 * [hierarchicalLoggingEnabled] is false. 20 * [hierarchicalLoggingEnabled] is false.
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 325
326 /** Associated exception message (if any) when recording errors messages. */ 326 /** Associated exception message (if any) when recording errors messages. */
327 String exceptionText; 327 String exceptionText;
328 328
329 LogRecord( 329 LogRecord(
330 this.level, this.message, this.loggerName, 330 this.level, this.message, this.loggerName,
331 [time, this.exception, this.exceptionText]) : 331 [time, this.exception, this.exceptionText]) :
332 this.time = (time == null) ? new Date.now() : time, 332 this.time = (time == null) ? new Date.now() : time,
333 this.sequenceNumber = LogRecord._nextNumber++; 333 this.sequenceNumber = LogRecord._nextNumber++;
334 } 334 }
OLDNEW
« no previous file with comments | « pkg/htmlescape/lib/htmlescape.dart ('k') | pkg/meta/lib/meta.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698