-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Conversation
What does Aren't log levels like 0-6 better? |
They are effectively ordered as such:
So if you set the level to I think it's better to used labelled logging as it corresponds with |
Sounds good, but maybe we should note in the help that trace is Apart form that it looks good! |
Ah, that's a good idea, I'll update the CLI help docs with that info. |
The Mist Meteor app also has a bunch of Do you think this is a good idea? |
If it adds it also to the log file, this might be useful if it works in the browser. Not sure if thats worth the time for now. Here is a meteor package, but it might only work for the meteor server side, which we don't use: https://atmospherejs.com/adain/log4js |
Looks like Meteor 1.3 has built-in support for NPM modules -> https://github.com/meteorhacks/npm So it would be trivial to include log4js into the Meteor app (once we've upgraded Meteor of course) and then we would just need to write a custom appender which sends the log data to the IPC back-end. I'd like to give this a go - I think it would be very useful. |
This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread. |
This replaces
console.log
calls with a log4js integration and adds two command-line flags (--loglevel
and--logfile
) to be able to customize logging verbosity at runtime.Benefits:
logger.js
file). We could also add a CLI arg to override the pattern if deemed necessary.--loglevel <level>
. Possible values aretrace
,debug
,info
,warn
,error
. Default isinfo
.--logfile <path to file>
arg.Error
objects well.I haven't added this logging to the Meteor "interface" app yet but there's no reason we can't do that.