carrot / sprout

:seedling: simple project templating & skeletons
MIT License
86 stars 7 forks source link

a logging utility #92

Open kylemac opened 9 years ago

kylemac commented 9 years ago

i've run into a few different log uses cases and i feel like a simple console.log falls a little short. i'm thinking we implement these logging helpers:

nporteschaikin commented 9 years ago

@kylemac I may not be thinking straight on this, but utils.log.queue doesn't really work as a Utils instance doesn't really know when a function ends, right?

I like the idea of a logger, though. Maybe with utils.log.success, utils.log.error, and utils.log.message?

nporteschaikin commented 9 years ago

@kylemac :point_up:

kylemac commented 9 years ago

major slowness here - apologies.

yeah you're right - because utils is completely detached we can't accomplish the queueing in a good way. it's a "nice to have" feature, but not worth refactoring or marshaling an object across the classes. i do like your proposal for the logging utils though.

nporteschaikin commented 8 years ago

@kylemac Thinking about this again! Do you think we should tie this into the existing emitter?

kylemac commented 8 years ago

i'm sort of on the side of things that thinks it's not worth the effort right meow

balupton commented 7 years ago

https://github.com/bevry/caterpillar may be of use