1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-11-18 02:16:23 -05:00
OpenDiablo2/d2core/d2records
gravestench d6c9748fef
refactored logging in d2loader, d2record, and d2asset (#898)
* refactored logging in d2config, d2record, and d2asset

* asset manager, record manager, and file loader now utilitize d2util.Logger
* added colored logging to d2util.Logger (excluding windows platforms)
* removed mpq file verification from d2config; d2loader handles this
* record loaders now use the record manager's logger for printing info
* added command line argument for setting log level (`--loglevel 4`, `-l4`, or `-l 4`
* added `LogLevel` parameter to config file
* default log level will show errors, warnings, and info log messages
* specifying log level as an argument overrides setting from config file

* fixed log level tests
2020-11-02 21:23:07 -05:00
..
armor_type_loader.go refactored logging in d2loader, d2record, and d2asset (#898) 2020-11-02 21:23:07 -05:00
armor_type_record.go adding the rest of the data dictionary loaders (#869) 2020-10-28 13:52:15 -04:00
automagic_loader.go refactored logging in d2loader, d2record, and d2asset (#898) 2020-11-02 21:23:07 -05:00
automagic_record.go Added RecordManager implementation to remove d2datadict singletons (#736) 2020-09-19 14:33:40 -04:00
automap_loader.go refactored logging in d2loader, d2record, and d2asset (#898) 2020-11-02 21:23:07 -05:00
automap_record.go Added RecordManager implementation to remove d2datadict singletons (#736) 2020-09-19 14:33:40 -04:00
belts_loader.go refactored logging in d2loader, d2record, and d2asset (#898) 2020-11-02 21:23:07 -05:00
belts_record.go fixed all golint type lint errors (#780) 2020-10-21 23:41:21 -07:00
body_locations_loader.go refactored logging in d2loader, d2record, and d2asset (#898) 2020-11-02 21:23:07 -05:00
body_locations_record.go Added RecordManager implementation to remove d2datadict singletons (#736) 2020-09-19 14:33:40 -04:00
books_loader.go refactored logging in d2loader, d2record, and d2asset (#898) 2020-11-02 21:23:07 -05:00
books_record.go Added RecordManager implementation to remove d2datadict singletons (#736) 2020-09-19 14:33:40 -04:00
calculations_loader.go refactored logging in d2loader, d2record, and d2asset (#898) 2020-11-02 21:23:07 -05:00
calculations_record.go Added RecordManager implementation to remove d2datadict singletons (#736) 2020-09-19 14:33:40 -04:00
charstats_loader.go refactored logging in d2loader, d2record, and d2asset (#898) 2020-11-02 21:23:07 -05:00
charstats_record.go Added RecordManager implementation to remove d2datadict singletons (#736) 2020-09-19 14:33:40 -04:00
color_loader.go refactored logging in d2loader, d2record, and d2asset (#898) 2020-11-02 21:23:07 -05:00
color_record.go fixed all golint type lint errors (#780) 2020-10-21 23:41:21 -07:00
component_codes_loader.go refactored logging in d2loader, d2record, and d2asset (#898) 2020-11-02 21:23:07 -05:00
component_codes_record.go Added RecordManager implementation to remove d2datadict singletons (#736) 2020-09-19 14:33:40 -04:00
composite_type_loader.go refactored logging in d2loader, d2record, and d2asset (#898) 2020-11-02 21:23:07 -05:00
composite_type_record.go adding the rest of the data dictionary loaders (#869) 2020-10-28 13:52:15 -04:00
constants.go Added RecordManager implementation to remove d2datadict singletons (#736) 2020-09-19 14:33:40 -04:00
cube_modifier_loader.go refactored logging in d2loader, d2record, and d2asset (#898) 2020-11-02 21:23:07 -05:00
cube_modifier_record.go adding the rest of the data dictionary loaders (#869) 2020-10-28 13:52:15 -04:00
cube_type_loader.go refactored logging in d2loader, d2record, and d2asset (#898) 2020-11-02 21:23:07 -05:00
cube_type_record.go adding the rest of the data dictionary loaders (#869) 2020-10-28 13:52:15 -04:00
cubemain_loader.go refactored logging in d2loader, d2record, and d2asset (#898) 2020-11-02 21:23:07 -05:00
cubemain_record.go Added RecordManager implementation to remove d2datadict singletons (#736) 2020-09-19 14:33:40 -04:00
difficultylevels_loader.go refactored logging in d2loader, d2record, and d2asset (#898) 2020-11-02 21:23:07 -05:00
difficultylevels_record.go Added RecordManager implementation to remove d2datadict singletons (#736) 2020-09-19 14:33:40 -04:00
doc.go fixed all golint type lint errors (#780) 2020-10-21 23:41:21 -07:00
elemtype_loader.go refactored logging in d2loader, d2record, and d2asset (#898) 2020-11-02 21:23:07 -05:00
elemtype_record.go Added RecordManager implementation to remove d2datadict singletons (#736) 2020-09-19 14:33:40 -04:00
events_loader.go refactored logging in d2loader, d2record, and d2asset (#898) 2020-11-02 21:23:07 -05:00
events_record.go Added RecordManager implementation to remove d2datadict singletons (#736) 2020-09-19 14:33:40 -04:00
experience_loader.go refactored logging in d2loader, d2record, and d2asset (#898) 2020-11-02 21:23:07 -05:00
experience_record.go fixed all golint type lint errors (#780) 2020-10-21 23:41:21 -07:00
gamble_loader.go refactored logging in d2loader, d2record, and d2asset (#898) 2020-11-02 21:23:07 -05:00
gamble_record.go fixed all golint type lint errors (#780) 2020-10-21 23:41:21 -07:00
gems_loader.go refactored logging in d2loader, d2record, and d2asset (#898) 2020-11-02 21:23:07 -05:00
gems_record.go Added RecordManager implementation to remove d2datadict singletons (#736) 2020-09-19 14:33:40 -04:00
hireling_description_loader.go refactored logging in d2loader, d2record, and d2asset (#898) 2020-11-02 21:23:07 -05:00
hireling_description_record.go adding the rest of the data dictionary loaders (#869) 2020-10-28 13:52:15 -04:00
hireling_loader.go refactored logging in d2loader, d2record, and d2asset (#898) 2020-11-02 21:23:07 -05:00
hireling_record.go Added RecordManager implementation to remove d2datadict singletons (#736) 2020-09-19 14:33:40 -04:00
hit_class_loader.go refactored logging in d2loader, d2record, and d2asset (#898) 2020-11-02 21:23:07 -05:00
hit_class_record.go adding the rest of the data dictionary loaders (#869) 2020-10-28 13:52:15 -04:00
inventory_loader.go refactored logging in d2loader, d2record, and d2asset (#898) 2020-11-02 21:23:07 -05:00
inventory_record.go Added RecordManager implementation to remove d2datadict singletons (#736) 2020-09-19 14:33:40 -04:00
item_affix_loader.go refactored logging in d2loader, d2record, and d2asset (#898) 2020-11-02 21:23:07 -05:00
item_affix_record.go fixed 'dupl' lint errors (#845) 2020-10-26 00:38:18 -07:00
item_armor_loader.go refactored logging in d2loader, d2record, and d2asset (#898) 2020-11-02 21:23:07 -05:00
item_common_loader.go fixed some of the remaining funlen lint errors (#850) 2020-10-26 04:39:10 -07:00
item_common_record.go Added RecordManager implementation to remove d2datadict singletons (#736) 2020-09-19 14:33:40 -04:00
item_low_quality_loader.go refactored logging in d2loader, d2record, and d2asset (#898) 2020-11-02 21:23:07 -05:00
item_low_quality_record.go adding the rest of the data dictionary loaders (#869) 2020-10-28 13:52:15 -04:00
item_misc_loader.go refactored logging in d2loader, d2record, and d2asset (#898) 2020-11-02 21:23:07 -05:00
item_quality_loader.go refactored logging in d2loader, d2record, and d2asset (#898) 2020-11-02 21:23:07 -05:00
item_quality_record.go Added RecordManager implementation to remove d2datadict singletons (#736) 2020-09-19 14:33:40 -04:00
item_ratio_loader.go refactored logging in d2loader, d2record, and d2asset (#898) 2020-11-02 21:23:07 -05:00
item_ratio_record.go fixed all golint type lint errors (#780) 2020-10-21 23:41:21 -07:00
item_types_loader.go refactored logging in d2loader, d2record, and d2asset (#898) 2020-11-02 21:23:07 -05:00
item_types_record.go Added RecordManager implementation to remove d2datadict singletons (#736) 2020-09-19 14:33:40 -04:00
item_weapons_loader.go refactored logging in d2loader, d2record, and d2asset (#898) 2020-11-02 21:23:07 -05:00
itemstatcost_loader.go refactored logging in d2loader, d2record, and d2asset (#898) 2020-11-02 21:23:07 -05:00
itemstatcost_record.go Added RecordManager implementation to remove d2datadict singletons (#736) 2020-09-19 14:33:40 -04:00
level_details_loader.go refactored logging in d2loader, d2record, and d2asset (#898) 2020-11-02 21:23:07 -05:00
level_details_record.go Added RecordManager implementation to remove d2datadict singletons (#736) 2020-09-19 14:33:40 -04:00
level_maze_loader.go refactored logging in d2loader, d2record, and d2asset (#898) 2020-11-02 21:23:07 -05:00
level_maze_record.go Added RecordManager implementation to remove d2datadict singletons (#736) 2020-09-19 14:33:40 -04:00
level_presets_loader.go refactored logging in d2loader, d2record, and d2asset (#898) 2020-11-02 21:23:07 -05:00
level_presets_record.go Added RecordManager implementation to remove d2datadict singletons (#736) 2020-09-19 14:33:40 -04:00
level_substitutions_loader.go refactored logging in d2loader, d2record, and d2asset (#898) 2020-11-02 21:23:07 -05:00
level_substitutions_record.go Added RecordManager implementation to remove d2datadict singletons (#736) 2020-09-19 14:33:40 -04:00
level_types_loader.go refactored logging in d2loader, d2record, and d2asset (#898) 2020-11-02 21:23:07 -05:00
level_types_record.go Added RecordManager implementation to remove d2datadict singletons (#736) 2020-09-19 14:33:40 -04:00
level_warp_loader.go refactored logging in d2loader, d2record, and d2asset (#898) 2020-11-02 21:23:07 -05:00
level_warp_record.go Added RecordManager implementation to remove d2datadict singletons (#736) 2020-09-19 14:33:40 -04:00
missiles_loader.go refactored logging in d2loader, d2record, and d2asset (#898) 2020-11-02 21:23:07 -05:00
missiles_record.go Removing d2datadict singletons (#738) 2020-09-20 17:52:01 -04:00
monster_ai_loader.go refactored logging in d2loader, d2record, and d2asset (#898) 2020-11-02 21:23:07 -05:00
monster_ai_record.go Added RecordManager implementation to remove d2datadict singletons (#736) 2020-09-19 14:33:40 -04:00
monster_equipment_loader.go refactored logging in d2loader, d2record, and d2asset (#898) 2020-11-02 21:23:07 -05:00
monster_equipment_record.go Added RecordManager implementation to remove d2datadict singletons (#736) 2020-09-19 14:33:40 -04:00
monster_levels_loader.go Added RecordManager implementation to remove d2datadict singletons (#736) 2020-09-19 14:33:40 -04:00
monster_levels_record.go refactored logging in d2loader, d2record, and d2asset (#898) 2020-11-02 21:23:07 -05:00
monster_mode_loader.go refactored logging in d2loader, d2record, and d2asset (#898) 2020-11-02 21:23:07 -05:00
monster_mode_record.go Added RecordManager implementation to remove d2datadict singletons (#736) 2020-09-19 14:33:40 -04:00
monster_placement_loader.go refactored logging in d2loader, d2record, and d2asset (#898) 2020-11-02 21:23:07 -05:00
monster_placement_record.go Added RecordManager implementation to remove d2datadict singletons (#736) 2020-09-19 14:33:40 -04:00
monster_preset_loader.go refactored logging in d2loader, d2record, and d2asset (#898) 2020-11-02 21:23:07 -05:00
monster_preset_record.go Added RecordManager implementation to remove d2datadict singletons (#736) 2020-09-19 14:33:40 -04:00
monster_property_loader.go refactored logging in d2loader, d2record, and d2asset (#898) 2020-11-02 21:23:07 -05:00
monster_property_record.go fixed all golint type lint errors (#780) 2020-10-21 23:41:21 -07:00
monster_sequence_loader.go refactored logging in d2loader, d2record, and d2asset (#898) 2020-11-02 21:23:07 -05:00
monster_sequence_record.go Added RecordManager implementation to remove d2datadict singletons (#736) 2020-09-19 14:33:40 -04:00
monster_sound_loader.go refactored logging in d2loader, d2record, and d2asset (#898) 2020-11-02 21:23:07 -05:00
monster_sound_record.go Added RecordManager implementation to remove d2datadict singletons (#736) 2020-09-19 14:33:40 -04:00
monster_stats2_loader.go refactored logging in d2loader, d2record, and d2asset (#898) 2020-11-02 21:23:07 -05:00
monster_stats2_record.go Added RecordManager implementation to remove d2datadict singletons (#736) 2020-09-19 14:33:40 -04:00
monster_stats_loader.go refactored logging in d2loader, d2record, and d2asset (#898) 2020-11-02 21:23:07 -05:00
monster_stats_record.go Added RecordManager implementation to remove d2datadict singletons (#736) 2020-09-19 14:33:40 -04:00
monster_super_unique_loader.go refactored logging in d2loader, d2record, and d2asset (#898) 2020-11-02 21:23:07 -05:00
monster_super_unique_record.go Added RecordManager implementation to remove d2datadict singletons (#736) 2020-09-19 14:33:40 -04:00
monster_type_loader.go refactored logging in d2loader, d2record, and d2asset (#898) 2020-11-02 21:23:07 -05:00
monster_type_record.go fixed all golint type lint errors (#780) 2020-10-21 23:41:21 -07:00
monster_unique_affix_loader.go refactored logging in d2loader, d2record, and d2asset (#898) 2020-11-02 21:23:07 -05:00
monster_unique_affix_record.go adding the rest of the data dictionary loaders (#869) 2020-10-28 13:52:15 -04:00
monster_unique_modifiers_loader.go refactored logging in d2loader, d2record, and d2asset (#898) 2020-11-02 21:23:07 -05:00
monster_unique_modifiers_record.go fixed all golint type lint errors (#780) 2020-10-21 23:41:21 -07:00
npc_loader.go refactored logging in d2loader, d2record, and d2asset (#898) 2020-11-02 21:23:07 -05:00
npc_record.go Added RecordManager implementation to remove d2datadict singletons (#736) 2020-09-19 14:33:40 -04:00
object_details_loader.go refactored logging in d2loader, d2record, and d2asset (#898) 2020-11-02 21:23:07 -05:00
object_details_record.go fixed all golint type lint errors (#780) 2020-10-21 23:41:21 -07:00
object_groups_loader.go refactored logging in d2loader, d2record, and d2asset (#898) 2020-11-02 21:23:07 -05:00
object_groups_record.go Added RecordManager implementation to remove d2datadict singletons (#736) 2020-09-19 14:33:40 -04:00
object_lookup_record_data.go Added RecordManager implementation to remove d2datadict singletons (#736) 2020-09-19 14:33:40 -04:00
object_lookup_record_test.go refactored logging in d2loader, d2record, and d2asset (#898) 2020-11-02 21:23:07 -05:00
object_lookup_record.go Added RecordManager implementation to remove d2datadict singletons (#736) 2020-09-19 14:33:40 -04:00
object_mode_loader.go refactored logging in d2loader, d2record, and d2asset (#898) 2020-11-02 21:23:07 -05:00
object_mode_record.go fixed all golint type lint errors (#780) 2020-10-21 23:41:21 -07:00
object_types_loader.go refactored logging in d2loader, d2record, and d2asset (#898) 2020-11-02 21:23:07 -05:00
object_types_record.go Added RecordManager implementation to remove d2datadict singletons (#736) 2020-09-19 14:33:40 -04:00
overlays_loader.go refactored logging in d2loader, d2record, and d2asset (#898) 2020-11-02 21:23:07 -05:00
overlays_record.go Added RecordManager implementation to remove d2datadict singletons (#736) 2020-09-19 14:33:40 -04:00
pet_type_loader.go refactored logging in d2loader, d2record, and d2asset (#898) 2020-11-02 21:23:07 -05:00
pet_type_record.go Added RecordManager implementation to remove d2datadict singletons (#736) 2020-09-19 14:33:40 -04:00
player_class_loader.go refactored logging in d2loader, d2record, and d2asset (#898) 2020-11-02 21:23:07 -05:00
player_class_record.go Added RecordManager implementation to remove d2datadict singletons (#736) 2020-09-19 14:33:40 -04:00
player_mode_loader.go refactored logging in d2loader, d2record, and d2asset (#898) 2020-11-02 21:23:07 -05:00
player_mode_record.go Added RecordManager implementation to remove d2datadict singletons (#736) 2020-09-19 14:33:40 -04:00
player_type_loader.go refactored logging in d2loader, d2record, and d2asset (#898) 2020-11-02 21:23:07 -05:00
player_type_record.go adding the rest of the data dictionary loaders (#869) 2020-10-28 13:52:15 -04:00
property_descriptor.go fixed 'dupl' lint errors (#845) 2020-10-26 00:38:18 -07:00
property_loader.go refactored logging in d2loader, d2record, and d2asset (#898) 2020-11-02 21:23:07 -05:00
property_record.go Added RecordManager implementation to remove d2datadict singletons (#736) 2020-09-19 14:33:40 -04:00
rare_affix_loader.go fixed 'dupl' lint errors (#845) 2020-10-26 00:38:18 -07:00
rare_affix.go fixed 'dupl' lint errors (#845) 2020-10-26 00:38:18 -07:00
rare_prefix_loader.go refactored logging in d2loader, d2record, and d2asset (#898) 2020-11-02 21:23:07 -05:00
rare_prefix_record.go fixed 'dupl' lint errors (#845) 2020-10-26 00:38:18 -07:00
rare_suffix_loader.go refactored logging in d2loader, d2record, and d2asset (#898) 2020-11-02 21:23:07 -05:00
rare_suffix_record.go fixed 'dupl' lint errors (#845) 2020-10-26 00:38:18 -07:00
record_loader.go Added RecordManager implementation to remove d2datadict singletons (#736) 2020-09-19 14:33:40 -04:00
record_manager.go refactored logging in d2loader, d2record, and d2asset (#898) 2020-11-02 21:23:07 -05:00
runeword_loader.go refactored logging in d2loader, d2record, and d2asset (#898) 2020-11-02 21:23:07 -05:00
runeword_record.go fixed 'dupl' lint errors (#845) 2020-10-26 00:38:18 -07:00
set_item_loader.go refactored logging in d2loader, d2record, and d2asset (#898) 2020-11-02 21:23:07 -05:00
set_item_record.go Added RecordManager implementation to remove d2datadict singletons (#736) 2020-09-19 14:33:40 -04:00
set_loader.go refactored logging in d2loader, d2record, and d2asset (#898) 2020-11-02 21:23:07 -05:00
set_record.go fixed 'dupl' lint errors (#845) 2020-10-26 00:38:18 -07:00
shrine_loader.go refactored logging in d2loader, d2record, and d2asset (#898) 2020-11-02 21:23:07 -05:00
shrine_record.go Added RecordManager implementation to remove d2datadict singletons (#736) 2020-09-19 14:33:40 -04:00
skill_description_loader.go refactored logging in d2loader, d2record, and d2asset (#898) 2020-11-02 21:23:07 -05:00
skill_description_record.go Initial left & right skill select panel implementation. HeroSkill serialization cleanup. (#783) 2020-10-22 16:53:18 -04:00
skill_details_loader.go refactored logging in d2loader, d2record, and d2asset (#898) 2020-11-02 21:23:07 -05:00
skill_details_record.go Initial cast overlay implementation. Fix HeroSkill deserialization & map entities processing crashing for remote client. (#766) 2020-10-10 18:47:51 -04:00
sound_details_loader.go refactored logging in d2loader, d2record, and d2asset (#898) 2020-11-02 21:23:07 -05:00
sound_details_record.go fixed all golint type lint errors (#780) 2020-10-21 23:41:21 -07:00
sound_environment_loader.go refactored logging in d2loader, d2record, and d2asset (#898) 2020-11-02 21:23:07 -05:00
sound_environment_record.go Added RecordManager implementation to remove d2datadict singletons (#736) 2020-09-19 14:33:40 -04:00
states_loader.go refactored logging in d2loader, d2record, and d2asset (#898) 2020-11-02 21:23:07 -05:00
states_record.go Added RecordManager implementation to remove d2datadict singletons (#736) 2020-09-19 14:33:40 -04:00
storepage_loader.go refactored logging in d2loader, d2record, and d2asset (#898) 2020-11-02 21:23:07 -05:00
storepage_record.go fixed all golint type lint errors (#780) 2020-10-21 23:41:21 -07:00
treasure_class_loader.go refactored logging in d2loader, d2record, and d2asset (#898) 2020-11-02 21:23:07 -05:00
treasure_class_record.go Added RecordManager implementation to remove d2datadict singletons (#736) 2020-09-19 14:33:40 -04:00
unique_appellation_loader.go refactored logging in d2loader, d2record, and d2asset (#898) 2020-11-02 21:23:07 -05:00
unique_appellations_record.go Added RecordManager implementation to remove d2datadict singletons (#736) 2020-09-19 14:33:40 -04:00
unique_items_loader.go refactored logging in d2loader, d2record, and d2asset (#898) 2020-11-02 21:23:07 -05:00
unique_items_record.go fixed 'dupl' lint errors (#845) 2020-10-26 00:38:18 -07:00
weapon_class_loader.go refactored logging in d2loader, d2record, and d2asset (#898) 2020-11-02 21:23:07 -05:00
weapon_class_record.go adding the rest of the data dictionary loaders (#869) 2020-10-28 13:52:15 -04:00