Did you remove the IDs from that message? I've never seen that sort of number before either. Was that with a chat or console command?
Logger
Moved
Total Downloads: 3,428 - First Release: Oct 22, 2014 - Last Update: Dec 12, 2017
- 5/5, 24 likes
-
Wulf Community Admin
-
Yes I removed the steamID's before posting. this is what is printed to the console log. i have RustAdmin so have a live feed to the server it used to show the messages like this (steamid's removed):
Code:[09/20/2017 14:20:03] [BdShT] Leviosaaaaah () ran command: inventory.lighttoggle True [09/20/2017 14:24:54] [BdShT] Leviosaaaaah () ran command: global.UI_ToggleSorter 3 [09/20/2017 14:27:56] [BdShT] Leviosaaaaah () ran command: /home home [09/20/2017 14:36:03] [BdShT] Leviosaaaaah () ran command: /home home1
Code:(19:23:20) | [Logger] V. () ran command: global.tpgui close (19:23:20) | [Logger] V. () ran command: close (19:23:21) | [Logger] V. () ran command: True (19:23:26) | [Logger] V. () ran command: close (19:23:29) | [Logger] V. () ran command: True
Code:(19:12:19) | [Logger] Captain Insanity () ran command: leaving now (19:12:19) | [Better Chat] [Player] Captain Insanity: leaving now
Code:(17:54:03) | [Logger] Captain Insanity () ran command: -1580059655 (17:56:30) | [Logger] Captain Insanity () ran command: -1021702157 (17:56:31) | [Logger] Captain Insanity () ran command: -1021702157
Code:{ "Log chat messages (true/false)": true, "Log command usage (true/false)": true, "Log player connections (true/false)": true, "Log player disconnections (true/false)": true, "Log player respawns (true/false)": true, "Log items crafted by players (true/false)": false, "Log items dropped by players (true/false)": false, "Log output to console (true/false)": true, "Excluded commands (full or short commands)": [ "help", "version", "voteday", "chat.say", "craft.add", "craft.canceltask", "global.kill", "global.respawn", "global.respawn_sleepingbag", "global.status", "global.wakeup", "global.SRUI", "global.homegui", "global.infoclose", "inventory.lighttoggle", "inventory.endloot", "inventory.unlockblueprint" ] }
-
UPDATE: Fixed it myself:
Code:(08:59:48) | [Logger] V. () ran command: global.UI_OpenUniversalUI True (09:00:25) | [Logger] V. () ran command: global.UI_AS_Sort ALL (09:01:54) | [Logger] V. () ran command: global.UI_AS_Sort THIS (09:02:36) | [Logger] V. () ran command: global.UI_AS_Sort ALL (09:02:53) | [Manifest] URI IS "https://api.facepunch.com/api/public/manifest/?public_key=j0VF6sNnzn9rwt9qTZtI02zTYK8PRdN1" (09:04:28) | [PlayerRanks] Player Ranks Local Database Was Saved. (09:09:45) | [JPipes] 0 pipes saved (09:09:45) | Saved 64,243 ents, serialization(0.00), write(0.01), disk(0.01) totalstall(0.03). (09:09:45) | Saving complete (09:10:58) | [Logger] V. () ran command: skinbox.open True (09:13:51) | [Logger] V. () ran command: skinbox.open True (09:14:45) | [JPipes] 0 pipes saved (09:14:45) | Saved 64,229 ents, serialization(0.00), write(0.02), disk(0.01) totalstall(0.03). (09:14:45) | Saving complete (09:19:06) | [Logger] V. () ran command: global.UI_AS_Sort THIS (09:19:45) | [JPipes] 0 pipes saved (09:19:45) | Saved 64,250 ents, serialization(0.00), write(0.01), disk(0.01) totalstall(0.03). (09:19:45) | Saving complete (09:20:14) | [Logger] V. () ran command: /remove (09:20:24) | [Logger] V. () ran command: /remove (09:23:32) | [Logger] V. () ran command: global.UI_AS_Sort THIS (09:23:55) | [Logger] V. () ran command: global.UI_AS_Sort THIS
Changed from this (latest version):
Code:if (command != "chat.say" && !config.ExcludedCommands.Contains(command)) Log("commands", Lang("PlayerCommand", null, arg.Connection.username, arg.Connection.userid, command, arg.FullString)); } #endif private void OnUserCommand(IPlayer player, string command, string[] args) { if (!config.ExcludedCommands.Contains(command)) Log("commands", Lang("PlayerCommand", null, player.Name, player.Id, command, string.Join(" ", args))); }
Code:if (args.StartsWith("/") && !config.ExcludedCommands.Contains(args)) //added this Log("commands", Lang("PlayerCommand", null, arg.Connection.username, arg.Connection.userid, args, null)); //added this if (command != "chat.say" && !config.ExcludedCommands.Contains(command)) Log("commands", Lang("PlayerCommand", null, arg.Connection.username, arg.Connection.userid, command, arg.FullString)); } #else //changed this private void OnUserCommand(IPlayer player, string command, string[] args) { if (!config.ExcludedCommands.Contains(command)) Log("commands", Lang("PlayerCommand", null, player.Name, player.Id, command, string.Join(" ", args))); } #endif //added this
-
Wulf Community Admin
-
mmm kay works fine for me atm, will wait for oxide update later and put the version on here back on and see what happens
-
I don't know if the 2nd error is directly related to the 1st logger error but they both happen together 1 after the other so I'm assuming they are connected somehow.
Code:(07:22:13) | [Oxide] 06:22 [Error] Failed to call hook 'OnUserCommand' on plugin 'Logger v2.1.3' (ArgumentNullException: Argument cannot be null. Parameter name: value) at System.String.Join (System.String separator, System.String[] value) [0x00000] in <filename unknown>:0 at Oxide.Plugins.Logger.OnUserCommand (IPlayer player, System.String command, System.String[] args) [0x00000] in <filename unknown>:0 at Oxide.Plugins.Logger.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00000] in <filename unknown>:0 (07:22:13) | [Oxide] 06:22 [Error] Failed to call hook 'IOnPlayerChat' on plugin 'RustCore v2.0.3791' (NullReferenceException: Object reference not set to an instance of an object) at Oxide.Game.Rust.Libraries.Command.HandleChatCommand (.BasePlayer sender, System.String name, System.String[] args) [0x00000] in <filename unknown>:0 at Oxide.Game.Rust.RustCore.IOnPlayerChat (.Arg arg) [0x00000] in <filename unknown>:0 at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&) at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
-
Wulf Community Admin
-
Code:
(01:38:37) | Failed to call hook 'OnServerCommand' on plugin 'Logger v2.1.3' (FormatException: Input string was not in a correct format.) at System.String.ParseFormatSpecifier (System.String str, System.Int32& ptr, System.Int32& n, System.Int32& width, System.Boolean& left_align, System.String& format) [0x00000] in <filename unknown>:0 at System.String.FormatHelper (System.Text.StringBuilder result, IFormatProvider provider, System.String format, System.Object[] args) [0x00000] in <filename unknown>:0 at System.String.Format (IFormatProvider provider, System.String format, System.Object[] args) [0x00000] in <filename unknown>:0 at System.String.Format (System.String format, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Plugins.Logger.Lang (System.String key, System.String id, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Plugins.Logger.Log (System.String filename, System.String key, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Plugins.Logger.OnServerCommand (.Arg arg) [0x00000] in <filename unknown>:0 at Oxide.Plugins.Logger.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00000] in <filename unknown>:0
-
Thanks for adding the timestamps, really helps a lot.
Is there a way to stop the crafting logger events from showing on the RCON console? I still want them logged to a file but I don't need to see it in the RCON console. -
I would love to see an option, and maybe I missed it, to create an admin/moderator log.
-
Also, is there a way to log private messages?
-
Wulf Community Admin
-
Hey Wulf,
How does this logger determine the timestamp to use for its logs? I am having an issue where I migrated my Rust server to a new platform (same time zone) however everything is coming across in UTC. -
Wulf Community Admin
-
-
Hey, have this error
Code:(19:32:22) | Failed to call hook 'OnItemAction' on plugin 'Logger v2.1.3' (FormatException: Input string was not in a correct format.) at System.String.ParseFormatSpecifier (System.String str, System.Int32& ptr, System.Int32& n, System.Int32& width, System.Boolean& left_align, System.String& format) [0x00000] in <filename unknown>:0 at System.String.FormatHelper (System.Text.StringBuilder result, IFormatProvider provider, System.String format, System.Object[] args) [0x00000] in <filename unknown>:0 at System.String.Format (IFormatProvider provider, System.String format, System.Object[] args) [0x00000] in <filename unknown>:0 at System.String.Format (System.String format, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Plugins.Logger.Lang (System.String key, System.String id, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Plugins.Logger.Log (System.String filename, System.String key, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Plugins.Logger.OnItemAction (.Item item, System.String action) [0x00000] in <filename unknown>:0 at Oxide.Plugins.Logger.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00000] in <filename unknown>:0 (19:32:50) | Failed to call hook 'OnItemAction' on plugin 'Logger v2.1.3' (FormatException: Input string was not in a correct format.) at System.String.ParseFormatSpecifier (System.String str, System.Int32& ptr, System.Int32& n, System.Int32& width, System.Boolean& left_align, System.String& format) [0x00000] in <filename unknown>:0 at System.String.FormatHelper (System.Text.StringBuilder result, IFormatProvider provider, System.String format, System.Object[] args) [0x00000] in <filename unknown>:0 at System.String.Format (IFormatProvider provider, System.String format, System.Object[] args) [0x00000] in <filename unknown>:0 at System.String.Format (System.String format, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Plugins.Logger.Lang (System.String key, System.String id, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Plugins.Logger.Log (System.String filename, System.String key, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Plugins.Logger.OnItemAction (.Item item, System.String action) [0x00000] in <filename unknown>:0 at Oxide.Plugins.Logger.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00000] in <filename unknown>:0
-
Hi @Wulf,
is there any way to hide "ran command: inventory.lighttoggle True"
I did put the exclusions and reload plugins but seems logger still appearing that messages.
In case u want to see my config file:
Code:{ "Exclusions": [ "/help", "/version", "chat.say", "craft.add", "craft.canceltask", "global.kill", "global.respawn", "global.respawn_sleepingbag", "global.status", "global.wakeup", "inventory.endloot", "inventory.lighttoggle" ], "LogChat": true, "LogCommands": true, "LogConnections": true, "LogRespawns": true, "LogToConsole": true }
-
Is there a way with this to log player kills?
-
While I understand that commands such as noclip and god are client side and are more than likely cannot be logged by the server, will this plugin log use of the "spawn" and "spawnitem" commands? and further, is there ANY possible way to log usage of "noclip" and "god"? I would like tighter control of my admins, I run a community vanilla server with oxide that is only running administrative mods, so I am limited as to what I can do...
-
Wulf Community Admin