You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

пре 3 година
12345678910111213141516171819202122
  1. var log = {
  2. SUCCESS : []
  3. , ERROR : []
  4. , FAIL : []
  5. }
  6. var statuslog = function (err, data){
  7. if(err)
  8. {
  9. log.ERROR.push(data)
  10. }
  11. else
  12. {
  13. log.SUCCESS.push(data)
  14. }
  15. }
  16. module.exports = {
  17. 'log' : log
  18. , 'statuslog' : statuslog
  19. }