
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
A frontend logger for Tauri applications, designed to log critical actions and store them locally for easy debugging and analysis.
A frontend logger for Tauri applications, designed to log critical actions and store them locally for easy debugging and analysis.
Define the scopes in your Tauri configuration in the following manner:
"tauri": {
"allowlist": {
"fs": {
"createDir": true,
"writeFile": true,
"scope": [
"$DOCUMENT/YOUR_APP_NAME/logs"
]
}
}
}
Substitue YOUR_APP_NAME with the name found in your tauri config
"package": {
"productName": "test-app", //<--
///
},
"scope": ["$DOCUMENT/CUSTOM_DIRNAME/logs"]
Where CUSTOM_DIRNAME is the name of the directory you want to use.
Use the directory name that you specify here and pass it to the customDirName option as described below.
Logging actions:
Utilize the log, warning, or error methods in the TauriLogger class to log significant events within your critical functions or actions:
function criticalFunction() {
try {
taLog.log("critical function success");
} catch (e) {
taLog.error("Crashed: " + e);
}
}
First import taLog from the npm package.
Then invoke the initializeLogger method with appropriate options:
taLog.initializeLogger({
reportErrors: true,
customDirName: "myCustomDir",
diagnosticReport: true,
consoleLog: true
});
By default, errors are automatically logged. However, you can set the reportErrors option to false if you wish to disable automatic error logging.
The logger provides a diagnostic report by default, which includes the application's name, version, and the utilized Tauri version. This feature can be disabled by setting the diagnosticReport option to false.
By default, logging to the console is disabled. It can be enabled by setting the consoleLog option to true.
By passing a customDirName option to the initializeLogger method, you can specify a custom directory for your log files.
Should you encounter any issues or wish to contribute, you're welcome to do so!
FAQs
A frontend logger for Tauri applications, designed to log critical actions and store them locally for easy debugging and analysis.
We found that ta-logger demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.