Pavel Djundik
c0d712c53d
Remove ability to change date format and timezone
2018-06-05 12:03:06 +03:00
Jérémie Astori
c86ea9463d
Use Sinon to stub the logger instead of manual stubbing
2018-03-20 01:54:04 -04:00
Pavel Djundik
fee81e78e1
Replace colors.js with chalk
2018-03-02 20:28:54 +02:00
Pavel Djundik
a3e448acf5
Enable no-var rule
...
Fixes #1961
2018-02-19 19:49:39 +02:00
Jérémie Astori
416f45d1e3
Use some ES6/Node v4-only syntax when possible
2018-02-19 18:30:00 +02:00
Jérémie Astori
b90c224a99
Define a raw logger to avoid using console.log
, use it in extra help for environment variables, and add a test for this
...
This has multiple benefits:
- Respects the "Do not mock what you do not own" principle, instead we mock `log.raw` when necessary
- Lets us not re-assign `console.log`, which breaks as Mocha uses `console.log` as well
- Save and restore initial `log.raw` in test hooks (before/after), otherwise this would break Mocha/Chai
2017-12-11 23:48:51 -05:00
Jérémie Astori
b8399471b3
Enable ESLint no-console
rule to avoid future mistakes
2017-09-17 21:50:21 -04:00
Jérémie Astori
770ede0587
Define a common helper for prompting to the user consistently
2016-12-16 22:46:14 -05:00
Jérémie Astori
baf3348cda
Normalize colors and content of the CLI tools
2016-12-15 01:13:43 -05:00
Jérémie Astori
caa46042bf
Enforce strict mode across all JS files with ESLint
...
Several ES6 additions are only available in strict mode. Example:
> SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
Strict mode was also enabled in a few of our files already, and it is a good thing to have anyway.
2016-10-09 15:14:02 -04:00
Pavel Djundik
100262ad1f
Cache loaded config and merge it with defaults
...
Fixes #249
2016-06-26 19:30:25 +03:00
Max-P
12c88debf4
Fix derp in new logger ( #283 )
...
Chose to rename to `error` as that's what's used everywhere and what the `console` object would expose, so it's more of a drop-in replacement.
2016-04-27 10:42:54 +03:00
Pavel Djundik
ede3131168
Add global logging helper
2016-04-27 00:05:55 +03:00
Pavel Djundik
fd36eea0ed
Rename log to userLog
2016-04-26 23:58:53 +03:00
deiu
a3227c90b2
Replace deprecated moment().zone
2016-02-14 11:31:11 -05:00
JocelynDelalande
8a80ee343d
Merge pull request #519 from lyra833/escape-channel
...
Fixed a bug preventing logging
2015-12-01 22:09:13 +01:00
William Boman
8fdfd70c7e
Comply with ESLint
2015-10-26 03:01:47 +01:00
Alexander Gould
0d6b3b00c3
slashes are replaced with %'s when writing log files
2015-10-14 19:53:27 -04:00
Mattias Erming
dcdec78c4e
Change 'logs/' location
2014-10-14 21:25:36 +02:00
Mattias Erming
2ed7d6364c
Added '--home <path>' option
2014-10-03 16:33:44 -07:00
Shell Turner
7e4534afa9
Always go through the Helper object to load config
2014-10-01 18:53:54 +02:00
Mattias Erming
bf8939cf06
List users on server start
2014-09-30 13:23:14 -07:00
Mattias Erming
e4b4e0e065
Fix log highlight
2014-09-27 17:14:52 -07:00
Mattias Erming
f3aee8f6cb
Minor changes
2014-09-16 13:06:13 -07:00
Mattias Erming
695e76a544
Added logging
2014-09-16 12:47:01 -07:00