Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

logging: introduce appenders #12028

Closed
DartBot opened this issue Jul 25, 2013 · 5 comments
Closed

logging: introduce appenders #12028

DartBot opened this issue Jul 25, 2013 · 5 comments
Labels
area-pkg Used for miscellaneous pkg/ packages not associated with specific area- teams. type-enhancement A request for a change that isn't a bug

Comments

@DartBot
Copy link

DartBot commented Jul 25, 2013

This issue was originally filed by @seaneagan


Currently, we have Logger.onRecord, and you can do something simple like:

logger.onRecord.map((record) => formatRecord(record)).listen(print);

But there is no easy way to log to a file (issue #8686), a remote system (issue #8443), etc.

In Java's logback this is handled by Appenders:

http://logback.qos.ch/manual/appenders.html

Appenders in dart could implement one of the Sink interfaces, possibly StreamSink<String> ? Maybe instead call it LineSink ? LogSink ?

then could do something like:

logger.onRecord.pipe(new ConsoleLineSink());

@madsager
Copy link
Contributor

cc @gramster.
cc @sigmundch.
Added Area-Library, Triaged labels.

@lrhn
Copy link
Member

lrhn commented Aug 16, 2013

Removed Type-Defect label.
Added Type-Enhancement, Library-Logging labels.

@lrhn
Copy link
Member

lrhn commented Jan 22, 2014

Removed Area-Library label.
Added Area-Pkg label.

@anders-sandholm
Copy link
Contributor

Removed Library-Logging label.
Added Pkg-Logging label.

@DartBot DartBot added Type-Enhancement area-pkg Used for miscellaneous pkg/ packages not associated with specific area- teams. labels Feb 6, 2014
@DartBot
Copy link
Author

DartBot commented Jun 5, 2015

This issue has been moved to dart-lang/core#415.

@DartBot DartBot closed this as completed Jun 5, 2015
@kevmoo kevmoo added type-enhancement A request for a change that isn't a bug and removed triaged labels Mar 1, 2016
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
area-pkg Used for miscellaneous pkg/ packages not associated with specific area- teams. type-enhancement A request for a change that isn't a bug
Projects
None yet
Development

No branches or pull requests

5 participants