-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
add console, file, and zulip logger on database changes #1010
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
Conversation
I have signed the license, why it won't validate it. |
Please provide commands you used:
I did not get it working yet, so probably I used wrong versions etc. |
Hi, I do nothing important,
The build is ok, so the dependencies should be here oO. |
I need all steps of cloning repo, installing node.js version, and versions of other dependencies to reproduce working version of wekan. In addition, how do I test your feature and see how it works? What menu options are new, does it integrate with something, commands to use to test it, etc. |
git clone https://github.com/huneau/wekan.git
cd wekan/
git checkout meteor-1.4-LOGGER
### for the rest nothing change
sudo npm -g install npm@latest
sudo npm -g install node-gyp
sudo npm -g install fibers
npm install
meteor I have added a few environment variable : export LOGGER_ENABLE=< true || false >
## LOGGERS => list of logger type, concatenate with a comma
## actually supported 'console', 'file','zulip' (zulip is my use case)
export LOGGERS=console,file
## For Console nothing any settings needed
## For File
## File will be create logs/<filename>
export LOGGER_FILE_NAME=<file name>
## For Zulip
export LOGGER_ZULIP_USERNAME=<zulip username>
export LOGGER_ZULIP_APIKEY=<zulip apikey>
export LOGGER_ZULIP_REALM=<zulip host>
export LOGGER_ZULIP_TO=<stream>
export LOGGER_ZULIP_SUBJECT=<stream topic> I think that's it.
For console export LOGGER_ENABLE=true
export LOGGERS=console For file export LOGGER_ENABLE=true
export LOGGERS=file
export LOGGER_FILE_NAME=server.log #create if not exist For both export LOGGER_ENABLE=true
export LOGGERS=console,file
export LOGGER_FILE_NAME=server.log #create if not exist For zulip is a bit more complex ##WEKAN CONF
export LOGGER_ENABLE=true
export LOGGERS=zulip
export LOGGER_ZULIP_USERNAME=<zulip username>
export LOGGER_ZULIP_APIKEY=<zulip apikey>
export LOGGER_ZULIP_REALM=<zulip host>
export LOGGER_ZULIP_TO=<stream>
export LOGGER_ZULIP_SUBJECT=<stream topic>
#####################################
## ZULIP INSTALLATION
git clone https://github.com/galexrt/docker-zulip.git
cd docker-zulip/
## replace SETTINGS_* variables
vi docker-compose.yml
docker-compose up -d
##after is a zulip webapp config for bot and apikey etc etc
Any menu has been changed.
I use Zulip here, but if you don't call it in environment variable you need nothing else.
Nothing, just plays with wekan and you will see logs appear where you have specified them. If you need more, just ask and I will try to respond quickly as possible. |
What node version are you using? |
hi there,
Related here: #1001
I create a logging mechanism using winstonjs.
The supported log is console, file, and zulip, up to you if you want more.
Actually, only JSON is supported as output.
Possible output
This one is when a card is moved.
Only database changes are logged.
This change is