Thread-Safe Logger OFFICIAL SALE

NOTE: This asset includes our Thread-Safe IO package. If you have already bought the Thread-Safe IO package, you can upgrade to the Logger package for a reduced price.



Thread-Safe Logger is a lightweight, high-performance logging utility that builds on top of our proven thread-safe I/O technology.


Whether you’re building a large-scale, complex multiplayer system, an advanced procedural game, or a simple 2D project, you can safely log from thousands of concurrent threads — no risk of data loss, sharing violations, or corrupted files.


Features at a glance

  • Fast, thread-safe logging
  • Smart per-path named locking
  • Efficient in-memory buffering (reduces IO overhead with many logs)
  • Ready to use out-of-the-box
  • Works across all major Unity versions
  • Fully cross-platform

How Does It Work?

  • Each logger writes to a designated log file you choose.
  • Each logger can write to its own file, or multiple loggers can write to a single file.
  • Loggers can also write logs to the Unity Debug Console.
  • Logs are buffered in memory, then flushed to disk after a configurable threshold.
  • Smart, file-based named locks guarantee safety for any number of threads, without the performance bottlenecks of global mutexes.
  • Uses ProjectGamedev.IO under the hood, ensuring 100% thread-safe file and directory access.

Getting Started is Easy!

Replace your existing log calls with our Logger class:


var myLogger = new ProjectGamedev.Logging.Logger("Logs", "session_log");

myLogger.Log("Player collected 50 coins");


That’s it — your logs are now fully thread-safe, automatically buffered, and guaranteed to be written safely even under heavy concurrency.



Industrial-Grade Quality Control

Automated tests guarantee the highest level of code correctness, with test coverage well above modern industrial standards (90% statement coverage vs 50-70% in the industry).


Multithreaded correctness is guaranteed by load testing, where thousands of threads simultaneously modify files and directories without causing IO errors.


Diverse Unity version support and OS-independence are tested by utilizing an industrial-grade continuous integration pipeline (CI pipeline) that runs Docker containers of various Unity versions on the cloud and executes the tests in each container.

This allows the finding of errors that are not present on local machines, and guarantees the stability and repeatability of the tests.


Stop worrying about lost logs or file corruption — let us handle it all for you, right out of the box.


Documentation

You can download the following document deliverables (.pdf files) concerning this asset (also included in the package):



For further information, visit the tool's page on our website.

For further technical details, visit the tool's documentation page.