Usage

To use Cat Log, you need to first import the package into your Unity project. The Unity asset store page recommends using Unity 2020.3.x or higher, but Cat Log should work fine with older versions as well. Once you have imported the package, you can begin using it in your project. You can customize the settings in the custom inspector, and use the log methods to add log messages to your code.

If you want to quickly start using Cat Log without customizing any settings, all you need to do is add a using statement in your script. Simply include the following line at the top of your script file:

using CatLog;

With this using statement in place, you can begin using the log methods provided by Cat Log to add log messages to your code. This is a simple and easy way to get started with Cat Log and begin improving your logging experience in Unity.

To create logs with Cat Log, you simply call one of the logging methods provided by the asset. Here are some examples of how to use these methods:

Log.Info("This is a purr-fectly normal status");
Log.Assert(false, "How come this is not true? Did someone forget to feed the cat?");
Log.Warning("Hm, something is fishy here. Did someone leave the litter box open again?");
Log.Error("Uh-oh this is not good at all. Someone better call the cat-astrophe hotline!");

Cat Log is designed to save all logs to files by default, but you can easily customize this behavior to fit your specific needs. You can do this in your own script, or by adding a prefab to your scene. For more information about how to customize the settings of Cat Log, see the Settings page.

Last updated