MadCoderZ / NewsBotIRC

NewsBotIRC - Java IRC Bot with RSS feed reader
MIT License
3 stars 2 forks source link

Implemented DB (postgresql) input/output - improved logging #26

Closed gpoppino closed 7 years ago

gpoppino commented 7 years ago

I did the following:

  1. Implemented a new method of output: Database (postgresql).
  2. Refactored the way we read presets: changed from bot.preset to bot.output, and from bot.feedreader to bot.input in newsbot.properties. You may combine input and output methods as you like. For instance, input RSS and output DB or input DB and output CONSOLE, etc.
  3. Improved the logging: all debug messages go to newsbot-debug.log file (rolling file by date), all errors go to the console and newsbot-error.log file and info messges go to the console only.