What is the size of TypeORM's logger file ormlogs.log?

59 Views Asked by At

With this connection configuration

{
    name: "mysql",
    type: "mysql",
    host: "localhost",
    port: 3306,
    username: "test",
    password: "test",
    database: "test",
    logging: true,
    logger: "file",
}

which creates ormlogs.log file in root folder, what is the max size of this logger file? How can we check max size of it or how can we set it for specific size?

The file was too big like more than 10 GB and I had problem in getting response from the code.

1

There are 1 best solutions below

0
Alice David dos Santos On

@pratik_a, I don't know about the set specific size, but you can set for queries which run for more than x seconds, set specific types of log you need more or create your strategy with logs using Custom Logger