Jump to content

basic logging

Closed 1.1.62

Exploding Weasel
Exploding Weasel

Posted

FEATURE REQUEST

Hi there.  I see someone else made a request for Discord logging, but I'd be more interested in basic logging of items purchased by players so I can determine which items are most/least popular etc.  ideally these would be stored in oxide/logs.  I think this would be universally helpful so perhaps it could be merged into a future release?

David

Posted

Hey, sure it is something I can do in future version

David

Posted

Changed Status from Pending to Closed

Exploding Weasel

Posted

As a followup, I added this myself with a single line of code added to the GiveTo() function upon success state:

 // Log event to file
 LogToFile("purchases", $"{player.displayName.Sanitize()} - {player.UserIDString} received {amount} x {item.info.shortname}", this, true);

 

About Us

Codefling is the largest marketplace for plugins, maps, tools, and more, making it easy for customers to discover new content and for creators to monetize their work.

Downloads
2.4m
Total downloads
Customers
10.9k
Customers served
Files Sold
156.7k
Marketplace sales
Payments
3.4m
Processed total
×
×
  • 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.