Jump to content
Message added by Zeeuss,

I've decided to completely rewrite ZLogs because of some performance mistakes I've made and also to add more features and generally make the plugin better.

New version brings you also new features like:
- Better performance
- Auto log deletion which can be set in the config
- More detailed logging
- Nicer UI
- Dark and light mode for the UI
- Search option and more.. 


TODO List:
Add ScrollBar:
- Ability to view custom amount of logs/page
Add Jump to page feature

Message added by Zeeuss,

Also please make sure, that you delete old files like config etc..
Thanks 🙂

13 Screenshots

  • 30.5k
  • 289
  • 323.35 kB

Recommended Comments



Snaplatack

Posted

16 minutes ago, ChristopherS said:

I've only just updated to the latest version (from a pre 1.0 version (the old one was working great)), and I've got an issue where it won't load at all.

I deleted my: config, data folder/files and language files.

Has anyone seen this error before, if so, do you know what I should do to resolve this?

Failed to initialize plugin 'ZLogs v1.0.1' (FormatException: Input string was not in a correct format.)
  at System.Number.ThrowOverflowOrFormatException (System.Boolean overflow, System.String overflowResourceKey) [0x0001a] in <8ce0bd04a7a04b4b9395538239d3fdd8>:0 
  at System.Number.ParseInt32 (System.ReadOnlySpan`1[T] value, System.Globalization.NumberStyles styles, System.Globalization.NumberFormatInfo info) [0x00016] in <8ce0bd04a7a04b4b9395538239d3fdd8>:0 
  at System.Int32.Parse (System.String s, System.Globalization.NumberStyles style, System.IFormatProvider provider) [0x0001d] in <8ce0bd04a7a04b4b9395538239d3fdd8>:0 
  at System.Convert.ToInt32 (System.String value, System.IFormatProvider provider) [0x00005] in <8ce0bd04a7a04b4b9395538239d3fdd8>:0 
  at System.String.System.IConvertible.ToInt32 (System.IFormatProvider provider) [0x00000] in <8ce0bd04a7a04b4b9395538239d3fdd8>:0 
  at System.Convert.ChangeType (System.Object value, System.Type conversionType, System.IFormatProvider provider) [0x000e0] in <8ce0bd04a7a04b4b9395538239d3fdd8>:0 
  at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.EnsureType (Newtonsoft.Json.JsonReader reader, System.Object value, System.Globalization.CultureInfo culture, Newtonsoft.Json.Serialization.JsonContract contract, System.Type targetType) [0x0007c] in <271c58b7a8684db5a2c92be17a81f252>:0 

 

Did you unload the plugin fully l, delete the files, and then update the plugin?

ChristopherS

Posted

3 minutes ago, Snaplatack said:

Did you unload the plugin fully l, delete the files, and then update the plugin?

I did yeah. 

Unloaded then deleted the .cs file - deleted the config/lang/data - uploaded the new version.

Zeeuss

Posted

14 minutes ago, ChristopherS said:

I did yeah. 

Unloaded then deleted the .cs file - deleted the config/lang/data - uploaded the new version.

FormatException: Input string was not in a correct format.

Hello,
Make sure that you first unload the plugin and then delete the config/data/lang file and then upload new version/reload the plugin, because this plugin saves data into datafile on plugin unload which could cause this issue 🙂 

  • Like 1
ChristopherS

Posted

10 minutes ago, Zeeuss said:

FormatException: Input string was not in a correct format.

Hello,
Make sure that you first unload the plugin and then delete the config/data/lang file and then upload new version/reload the plugin, because this plugin saves data into datafile on plugin unload which could cause this issue 🙂 

 I did. 

I even rolled back to the previous version so that I could show you me unloading the plugin.

I unloaded the plugin, deleted the .cs file, deleted the config, deleted the lang, deleted the data folder along with all the files.

I then loaded the new version and was hit with that error again.

Here's a screenshot of me doing this just a moment ago.

image.png

Zeeuss

Posted

1 hour ago, ChristopherS said:

 I did. 

I even rolled back to the previous version so that I could show you me unloading the plugin.

I unloaded the plugin, deleted the .cs file, deleted the config, deleted the lang, deleted the data folder along with all the files.

I then loaded the new version and was hit with that error again.

Here's a screenshot of me doing this just a moment ago.

image.png

DM me on discord, so we can sort this out 🙂
Discord: Zeeuss

s3lphctr1

Posted

noticed an error in my server log today
 

[ZLogs] Removing old logs
[ZLogs] Removed 14 old logs
Failed to call hook 'OnCupboardAuthorize' on plugin 'ZLogs v1.0.2' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.ZLogs.OnCupboardAuthorize (BuildingPrivlidge privilege, BasePlayer player) [0x00052] in <8008f15ec9c44375ad2d3043b54842fd>:0 
  at Oxide.Plugins.ZLogs.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x01f1a] in <8008f15ec9c44375ad2d3043b54842fd>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <206a0f2c6ee141f38e2ad549cde44d70>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000de] in <beb2b64691c64e2b95b99491bd85442c>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <beb2b64691c64e2b95b99491bd85442c>:0

seems to be rate limited now
 

[ZLogs] Discord.com responded with code 429

 

Zeeuss

Posted

1 hour ago, s3lphctr1 said:

noticed an error in my server log today
 

[ZLogs] Removing old logs
[ZLogs] Removed 14 old logs
Failed to call hook 'OnCupboardAuthorize' on plugin 'ZLogs v1.0.2' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.ZLogs.OnCupboardAuthorize (BuildingPrivlidge privilege, BasePlayer player) [0x00052] in <8008f15ec9c44375ad2d3043b54842fd>:0 
  at Oxide.Plugins.ZLogs.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x01f1a] in <8008f15ec9c44375ad2d3043b54842fd>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <206a0f2c6ee141f38e2ad549cde44d70>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000de] in <beb2b64691c64e2b95b99491bd85442c>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <beb2b64691c64e2b95b99491bd85442c>:0

seems to be rate limited now
 

[ZLogs] Discord.com responded with code 429

 

Just checked real quick, and the error can occur, if the tc didn't have owner (Maybe entity spawned via RustEdit or via F1 menu? Not sure).

The discord one can occur when too many logs get sent in a short period of time.

s3lphctr1

Posted

1 hour ago, Zeeuss said:

Just checked real quick, and the error can occur, if the tc didn't have owner (Maybe entity spawned via RustEdit or via F1 menu? Not sure).

The discord one can occur when too many logs get sent in a short period of time.

i expect its coming from abandoned bases. Should have a null check in the OnCupboardAuthorize method, didnt have the console spam till error either causing me to think the message is trying to be sent over and over causing the rate limiting. Had the same type of issue with a discord bot i was making. 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Like 4
  • Love 2

User Feedback

1.4m

Downloads

Total number of downloads.

6.8k

Customers

Total customers served.

101.4k

Files Sold

Total number of files sold.

2m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.