Skip to content

Commit

Permalink
Merge pull request #1 from axten/master
Browse files Browse the repository at this point in the history
fixed logWarn function name for apply logging
  • Loading branch information
DracoBlue committed Oct 22, 2015
2 parents e384bd4 + 4abeb5e commit 8c2162e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ will be excluded from tracing.

## Changelog

* 1.0.3 (2015/10/22)
- fixed name of logWarn method
* 1.0.2 (2015/09/03)
- automatic tracing only active if `logging.level >= logging.LEVEL_TRACE`
* 1.0.1 (2014/08/31)
Expand All @@ -72,4 +74,4 @@ will be excluded from tracing.

## License

logging.js is licensed under the terms of MIT.
logging.js is licensed under the terms of MIT.
4 changes: 2 additions & 2 deletions logging.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ define('logging', [], function()

logging.applyLogging = function(target, loggingPrefix, fromTracingExcludedMethods)
{
var methods = ['logDebug', 'logTrace', 'logError', 'logInfo', 'LogWarn'];
var methods = ['logDebug', 'logTrace', 'logError', 'logInfo', 'logWarn'];
var methods_length = methods.length;
var disableTracing = false;

Expand All @@ -109,7 +109,7 @@ define('logging', [], function()
disableTracing = true;
}

fromTracingExcludedMethods = fromTracingExcludedMethods || ['logDebug', 'logTrace', 'logError', 'logInfo', 'LogWarn'];
fromTracingExcludedMethods = fromTracingExcludedMethods || ['logDebug', 'logTrace', 'logError', 'logInfo', 'logWarn'];

target.loggingPrefix = loggingPrefix;

Expand Down

0 comments on commit 8c2162e

Please sign in to comment.