ajbrown / angular-loggly-logger

An AngularJS module which sends your $log message to loggly, and provides a service for manually sending messages to loggly.
MIT License
32 stars 49 forks source link

Add support for commonjs #35

Closed whitneyit closed 8 years ago

whitneyit commented 8 years ago

The notable change of this PR is:

-angular.module( 'myApp', ['logglyLogger'] )
+angular.module( 'myApp', [require('angular-loggly-logger')] )

This allows the file to be directly required and used by either browserify or jspm quite nicely.

This shouldn't interfere with people who were just including the 2 script files, angular.js and angular-loggly-logger.js on the page.

The version has been bumped to 0.2.0 because of the addition of index.js

RE: #34