Commit graph

16 commits

Author SHA1 Message Date
balandi1
bd8ddd1835 Refactored Code
Moved the 'logDir' and 'logger' global variables into 'loggerImpl' struct
Renamed struct names and interface name
2019-12-05 15:01:11 -05:00
balandi1
64ab443d25 Minor code style fixes
Removed the global logger instance and kept it in LoggerImpl
struct.
Changed access level for members of LoggerImpl.
2019-12-04 14:56:48 -05:00
balandi1
c914161643 Minor bug fixes 2019-12-04 14:08:17 -05:00
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
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
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
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
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