Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

1.1.0 Pomelo,pomelo-logger 0.1.6, 使用logger.log会报log4js的level错误 #3

Open
mr-kelly opened this issue Sep 25, 2014 · 0 comments

Comments

@mr-kelly
Copy link

[2014-09-25 13:27:25.538] [ERROR] console - Caught exception: TypeError: Cannot
read property 'level' of undefined
at Level.isLessThanOrEqualTo (D:\KK\Code\cosmosbox\cb-product\server\game-se
rver\node_modules\pomelo-logger\node_modules\log4js\lib\levels.js:42:34)
at Object.Logger.isLevelEnabled (D:\KK\Code\cosmosbox\cb-product\server\game
-server\node_modules\pomelo-logger\node_modules\log4js\lib\logger.js:63:21)
at Object.Logger.log (D:\KK\Code\cosmosbox\cb-product\server\game-server\nod
e_modules\pomelo-logger\node_modules\log4js\lib\logger.js:56:12)
at Object. (D:\KK\Code\cosmosbox\cb-product\server\game-server\ap
p.js:117:8)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)

更新最新的pomelo-logger后.log不能用, 说找不到log这个level,看了log4js确实没这个level,但又有这个方法,估计是log4js的BUG?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant