Commit graph

19 commits

Author SHA1 Message Date
balandi1
bedfa52d7a Added functions to logging library
Added Logf() and WithFields() functions.
Logf() for logging formatted messages.
WithFields() for handling optional log fields.
2019-12-04 13:16:48 -05:00
balandi1
b9592ed31c Removed Log Color Codes
Since the color codes were displayed in an inappropriate manner,
removed them from all logs
.
2019-11-26 18:12:55 -05:00
balandi1
d0e989136e Handled ennabling/disabling log types
Added enabled check while creating log files and logging.
Do not allow to create log file or log if the log type is disabled.
2019-11-26 18:02:24 -05:00
balandi1
0c0361e209 Code Refactoring
Modified comments. Organized imports.
2019-11-26 14:24:20 -05:00
balandi1
2fa3bebaa6 Removed dummy head logger
Replaced dummy head logger instance with ConsoleLogger
instance in the chain.
2019-11-26 13:54:02 -05:00
balandi1
bb8c0a79d6 Minor code improvements
Removed commented code. Resolved spacing issue in yaml.
2019-11-26 13:19:15 -05:00
balandi1
24dbbb208f Flag for Logger Config yaml file name
Removed yaml filename from env.go and added its flag to scheduler.go
2019-11-26 13:08:45 -05:00
balandi1
ef6d154d06 Refactoring Code
Renamed PcpLogger, SetLogFile(), LogFileName. Changed error messages in loggerConfig.
2019-11-26 12:48:48 -05:00
balandi1
370a490643 Code Refactoring and modifications 2019-11-21 18:04:59 -05:00
balandi1
eaac82ceb9 Few code improvements and refactoring 2019-11-21 15:26:57 -05:00
balandi1
cb5df9acc8 Removed ERROR, GENERAL, SUCCESS, WARNING log types 2019-11-21 14:58:14 -05:00
balandi1
270c8669e6 Revert previous commit. Renamed wrong alias 2019-11-21 14:12:53 -05:00
balandi1
9952b9861d Renamed alias log to elekLog 2019-11-21 14:02:47 -05:00
balandi1
7996240b2e Encapsulated log directory name into a struct 2019-11-21 13:47:22 -05:00
balandi1
13c3de44be Changed alias elekLogT to elekLogTypes 2019-11-21 13:05:52 -05:00
balandi1
20f2f1e8c5 Used string join at neccesary places. Removed unused code 2019-11-20 16:11:33 -05:00
balandi1
4d15e59d4c Code formatting 2019-11-20 13:33:46 -05:00
balandi1
c27aba895b Changes made everywhere inorder to use elektronLogging library for logging 2019-11-13 14:08:52 -05:00
balandi1
1fd6c7e4f4 Initial elektromLogging library 2019-11-13 11:19:04 -05:00