![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
@tsed/logger-file
Advanced tools
A package of Ts.ED logger framework.
The file appender writes log events to a file. It supports an optional maximum file size, and will keep a configurable number of backups. When using the file appender, you should also call logger.shutdown() when your application terminates, to ensure that any remaining asynchronous writes have finished. Although the file appender uses the streamroller library, this is included as a dependency of ts-log-debug so you do not need to include it yourself.
npm install --save @tsed/logger-file
file
Any other configuration parameters will be passed to the underlying streamroller implementation (see also node.js core file streams):
import {Logger} from "@tsed/logger";
import "@tsed/logger-file";
const logger = new Logger("loggerName");
logger.appenders.set("everything", {
type: "file",
filename: "all-the-logs.log"
});
logger.debug("I will be logged in all-the-logs.log");
This example will result in a single log file (all-the-logs.log) containing the log messages.
import {Logger} from "@tsed/logger";
import "@tsed/logger-file";
const logger = new Logger("loggerName");
logger.appenders.set("everything", {
type: "file",
filename: "all-the-logs.log",
maxLogSize: 10485760,
backups: 3,
compress: true
});
This will result in one current log file (all-the-logs.log
). When that reaches 10Mb in size, it will be renamed and
compressed to all-the-logs.log.1.gz and a
new file opened called all-the-logs.log
.
When all-the-logs.log
reaches 10Mb again, then all-the-logs.log.1.gz will be renamed to
all-the-logs.log.2.gz
, and so on.
import {Logger} from "@tsed/logger-file";
import "@tsed/logger-file";
export const logger = new Logger("Log Example");
logger.appenders.set("file", {
type: "file",
filename: `${__dirname}/../logs/myfile.log`,
pattern: ".yyyy-MM-dd"
});
Thank you to all our backers! 🙏 [Become a backer]
Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [Become a sponsor]
The MIT License (MIT)
Copyright (c) 2016 - 2018 Romain Lenzotti
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
FAQs
File appender module for @tsed/logger
We found that @tsed/logger-file demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.