Extending the Log Settings

From Battletech Modding Wiki
Jump to: navigation, search

There are 2 location where you can find log output generated by the game.

1) \SteamLibrary\SteamApps\common\BattleTech - Private Beta\BattleTech_Data\output_log.txt 2) \SteamLibrary\SteamApps\common\BattleTech - Private Beta\DumpBox\??some date here??\

If the settings are change all will be logged in the output_log.txt, but there will also be a better readable version in the DumpBox subfolder.

There are at least four logging priorities available. The highest priority messages will be output if requested, or if any of the lower priority messages have been requested. The known priorities are:

  • Error
  • Warning (will also display Error messages)
  • Log (will also display Warning and Error messages)
  • Debug (will also display Log, Warning, and Error messages)

The primary files to change is

d:\SteamLibrary\SteamApps\common\BattleTech - Private Beta\BattleTech_Data\StreamingAssets\data\debug\settings.json

In the default version this file only contains some debug option and not all are set to log. The other files in the directory and also the data\loggerProfile\ folder contain many more logging option.

This is a version of the settings that contains every option at "Debug" that is in the different files:

{
   "loggerLevels" : [
     {
       "k" : "AI",
       "v" : "Debug"
     },
     {
       "k" : "AI.BehaviorNodes",
       "v" : "Debug"
     },
     {
       "k" : "AI.DecisionMaking",
       "v" : "Debug"
     },
     {
       "k" : "AI.TurnOrder",
       "v" : "Debug"
     },
     {
       "k" : "Analytics",
       "v" : "Debug"
     },
     {
       "k" : "Analytics.Log",
       "v" : "Debug"
     },
     {
       "k" : "Analytics.Google",
       "v" : "Debug"
     },
     {
       "k" : "BattleTechServerGameVerification",
       "v" : "Debug"
     },
     {
       "k" : "CombatLog.AbilitiesAndEffects",
       "v" : "Debug"
     },
     {
       "k" : "CombatLog.ActorActivation",
       "v" : "Debug"
     },
     {
       "k" : "CombatLog.AttackDirector",
       "v" : "Debug"
     },
     {
       "k" : "CombatLog.AttackSequence",
       "v" : "Debug"
     },
     {
       "k" : "CombatLog.Attacking",
       "v" : "Debug"
     },
     {
       "k" : "CombatLog.Crit",
       "v" : "Debug"
     },
     {
       "k" : "CombatLog.Damage",
       "v" : "Debug"
     },
     {
       "k" : "CombatLog.Heat",
       "v" : "Debug"
     },
     {
       "k" : "CombatLog.Hit",
       "v" : "Debug"
     },
     {
       "k" : "CombatLog.HitMin",
       "v" : "Debug"
     },
     {
       "k" : "CombatLog.Initialization",
       "v" : "Debug"
     },
     {
       "k" : "CombatLog.Injury",
       "v" : "Debug"
     },
     {
       "k" : "CombatLog.InvocationHandler",
       "v" : "Debug"
     },
     {
       "k" : "CombatLog.Invocations",
       "v" : "Debug"
     },
     {
       "k" : "CombatLog.MechDFASequence",
       "v" : "Debug"
     },
     {
       "k" : "CombatLog.MechFallSequence",
       "v" : "Debug"
     },
     {
       "k" : "CombatLog.MechImpacts",
       "v" : "Debug"
     },
     {
       "k" : "CombatLog.MechImpacts_Debug",
       "v" : "Debug"
     },
     {
       "k" : "CombatLog.MechJumpSequence",
       "v" : "Debug"
     },
     {
       "k" : "CombatLog.MechMeleeSequence",
       "v" : "Debug"
     },
     {
       "k" : "CombatLog.Morale",
       "v" : "Debug"
     },
     {
       "k" : "CombatLog.RoundSequence",
       "v" : "Debug"
     },
     {
       "k" : "CombatLog.Stability",
       "v" : "Debug"
     },
     {
       "k" : "CombatLog.StatCollection.Actions",
       "v" : "Debug"
     },
     {
       "k" : "ErrorLog.Pilot",
       "v" : "Debug"
     },
     {
       "k" : "Network.Client",
       "v" : "Debug"
     },
     {
       "k" : "Network.Core",
       "v" : "Debug"
     },
     {
       "k" : "Network.Server",
       "v" : "Debug"
     },
     {
       "k" : "Network.Traffic",
       "v" : "Debug"
     },
     {
       "k" : "NetworkRandomCallstacks",
       "v" : "Debug"
     },
     {
       "k" : "NetworkRandomValues",
       "v" : "Debug"
     },
     {
       "k" : "PreviousRandomReport",
       "v" : "Debug"
     },
     {
       "k" : "UI",
       "v" : "Debug"
     }
   ],
   "fileLogAppenders" : [
       "AI",
       "Analytics",
       "BattleTechServerGameVerification",
       "CombatLog",
       "ErrorLog",
       "GameInfo",
       "Network",
       "NetworkRandomCallstacks",
       "NetworkRandomValues",
       "PreviousRandomReport"
   ],
   "debugConsoleFilterLevel" : "Debug",
   "debugConsoleIncludeFilters" : [
       
   ],
   "debugConsoleExcludeFilters" : [
       
   ],
   "loggerColors" : [
       
   ],
   "playerOneIsAIControlled" : false,
   "playerTwoIsAIControlled" : false,
   "disableWeaponEffectDrivenAttacks" : false,
   "pauseOnDesync" : false,
   "filesToLoadOnTopOfThis" : [
   ],
   "playFabServer" : "",
   "ipResolutionUrls" : [
       
   ],
   "loopbackStrategy" : true,
   "directStrategy" : false,
   "onlineDirectStrategy" : false,
   "pbbStrategy" : true
}