Right, I just looked at the source out of curiosity.

On Saturday, March 23, 2013 8:36:57 PM UTC-4, Mikeal Rogers wrote:
>
> i was calling out a more ideal API, not what is actually implemented.
>
> On Mar 23, 2013, at 5:29PM, Ilya Shaisultanov 
> <[email protected]<javascript:>> 
> wrote:
>
> Weird
>
> module.exports = Logger;
> // ...
> module.exports.createLogger = function createLogger(options) {
>   return new Logger(options);
> };
>
>
> Maybe compatibility with old API?
>
> On Saturday, March 23, 2013 8:25:03 PM UTC-4, Mikeal Rogers wrote:
>>
>> var logger = bunyan();
>>
>> :)
>>
>> -Mikeal
>>
>> On Mar 23, 2013, at 5:22PM, Rick Waldron <[email protected]> wrote:
>>
>> I might be half-trolling here...
>>
>>
>> On Fri, Mar 22, 2013 at 1:50 AM, Nabeel S. <[email protected]> wrote:
>>
>>>
>>>   var logger = bunyan.createLogger(...);
>>>
>>
>> Why do module authors make gross factory APIs?
>>
>> Instead of wrapping the export in this icky "createLogger" method, that 
>> doesn't do _anything_ (one assumes a factory exists to provide some 
>> additional layer of logic over the base constructor, or else what is the 
>> point?), why not export the constructor?
>>
>> var logger = new bunyan.Logger();
>>
>> Yay, much nicer.
>>
>> Feel free to completely ignore me.
>>
>> Rick
>>
>>
>>
>>
>> -- 
>> -- 
>> Job Board: http://jobs.nodejs.org/
>> Posting guidelines: 
>> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
>> You received this message because you are subscribed to the Google
>> Groups "nodejs" group.
>> To post to this group, send email to [email protected]
>> To unsubscribe from this group, send email to
>> [email protected]
>> For more options, visit this group at
>> http://groups.google.com/group/nodejs?hl=en?hl=en
>>  
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "nodejs" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected].
>> For more options, visit https://groups.google.com/groups/opt_out.
>>  
>>  
>>
>>
>>
> -- 
> -- 
> Job Board: http://jobs.nodejs.org/
> Posting guidelines: 
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to [email protected] <javascript:>
> To unsubscribe from this group, send email to
> [email protected] <javascript:>
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
>  
> --- 
> You received this message because you are subscribed to the Google Groups 
> "nodejs" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] <javascript:>.
> For more options, visit https://groups.google.com/groups/opt_out.
>  
>  
>
>
>

-- 
-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to