Set project options and the app icon
In CrawRAD, you can set the application window title, configure application icons across all target resolutions, and set up file-based logging directly from the Project Options dialog.
To open the dialog, select Project > Options… from the main menu.
The left navigation pane provides two configuration pages: Application and Log.
Application options and icon
On the Application page:
Title
- In the Title field, type the window and taskbar title for your application.
- If left blank, the title defaults to the
[package] namedefined inCargo.toml.
Application icon
CrawRAD displays previews of your icon in four resolutions: 256×256, 48×48, 32×32, and 16×16.
- To load a custom icon, click Load icon….
- Select either:
- An
.icofile containing icon frames. - A
.pngimage. CrawRAD automatically generates the multi-resolution.ico(with 16, 32, 48, and 256 pixel frames) and saves it asicon.icoin your project folder.
- An
- To revert back to the default CrawRAD crab icon, click Default.
- Click OK to save your changes.
Platform icon behavior
- Windows: The icon is embedded directly into the compiled
.exeresource table, showing in File Explorer, on the taskbar, and in the Alt+Tab task switcher. - Every operating system: The icon is displayed in the window title bar and dock while the application runs.
What CrawRAD writes
CrawRAD stores these options under [package.metadata.crawrad] in your project’s Cargo.toml:
[package.metadata.crawrad]
title = "Inventory Manager"
icon = "custom"
The user comments, formatting, and other sections in your Cargo.toml remain untouched.
Configure application logging
Open the Log page to configure file logging for your application.
- Check Write the log points to a file to enable logging.
- In the File name field, type the log file pattern. You can click the marker chips to insert dynamic tokens:
{app}: Application package name.{date}: Current date (YYYY-MM-DD).{time}: Timestamp (HHMMSS).{pid}: Operating system process ID.{user}: Current user name.
- Under Folder, choose where log files are stored:
- Next to the executable: Writes logs into the directory containing your compiled binary.
- The user’s data folder: Stores logs in the user configuration directory (e.g.,
%APPDATA%\<app>\logson Windows). - Custom: Type a directory path or click Browse… to select one.
- Set the Minimum level for Debug builds and Release builds:
- Choose from
Debug,Info,Warning,Error, orOff.
- Choose from
- Under Files, configure log rotation:
- New file: every day, or every run. A new file every day needs
{date}in the name; a new file every run needs{time}or{pid}. - Keep the last: Set the maximum number of log files to retain before older logs are purged.
- New file: every day, or every run. A new file every day needs
- Click OK to save your settings.
Runtime override precedence
Log options can be adjusted in deployed applications without rebuilding. CrawRAD applies settings in the following order (first found wins):
- Command line flags passed at launch.
- Environment variables set on the machine.
- An override configuration file placed beside the executable.
- The defaults configured in this dialog and compiled into the executable.