mirror of
https://github.com/nestjs/nest.git
synced 2026-02-21 23:11:44 +00:00
feat: change updateandgettimestampdiff from private to protected
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -42,3 +42,6 @@ yarn-error.log
|
||||
/packages/graphql
|
||||
/benchmarks/memory
|
||||
build/config\.gypi
|
||||
|
||||
.npmrc
|
||||
pnpm-lock.yaml
|
||||
@@ -1,8 +1,8 @@
|
||||
import { NestFactory } from '@nestjs/core';
|
||||
import { ApplicationModule } from './app.module';
|
||||
import { AppModule } from './app.module';
|
||||
|
||||
async function bootstrap() {
|
||||
const app = await NestFactory.create(ApplicationModule);
|
||||
const app = await NestFactory.create(AppModule);
|
||||
await app.listen(3000);
|
||||
}
|
||||
bootstrap();
|
||||
|
||||
@@ -251,7 +251,7 @@ export class ConsoleLogger implements LoggerService {
|
||||
process.stderr.write(`${stack}\n`);
|
||||
}
|
||||
|
||||
private updateAndGetTimestampDiff(): string {
|
||||
protected updateAndGetTimestampDiff(): string {
|
||||
const includeTimestamp =
|
||||
ConsoleLogger.lastTimestampAt && this.options?.timestamp;
|
||||
const result = includeTimestamp
|
||||
|
||||
@@ -253,7 +253,7 @@ export class Logger implements LoggerService {
|
||||
|
||||
/**
|
||||
* Attach buffer.
|
||||
* Turns on initialisation logs buffering.
|
||||
* Turns on initialization logs buffering.
|
||||
*/
|
||||
static attachBuffer() {
|
||||
this.isBufferAttached = true;
|
||||
@@ -261,7 +261,7 @@ export class Logger implements LoggerService {
|
||||
|
||||
/**
|
||||
* Detach buffer.
|
||||
* Turns off initialisation logs buffering.
|
||||
* Turns off initialization logs buffering.
|
||||
*/
|
||||
static detachBuffer() {
|
||||
this.isBufferAttached = false;
|
||||
|
||||
Reference in New Issue
Block a user