5

This is how I create a logger:

private readonly logger: Logger = new Logger('Auth Resolver')

And this is how I use it:

this.logger.log('Some log message')

There is not a config or custom logging. Just trying to print a log message from a newly constructed Nest JS application. I looked through the source code of the Logger class and saw that it directs all output to process.stdout but nothing is printed to the terminal window I run the application.

Am I missing something here?

Élodie Petit
  • 5,774
  • 6
  • 50
  • 88

1 Answers1

-1

I was facing the same issue, but when I tried with application/x-www-form-urlencode option, it printed out the result in the terminal's console. Try sending data using the above mentioned option or by application/json.

{
    "username": "abc",
    "password": "xyz"
}

You may consider other options like multer, formidable, form-parser, and others.

I am using Tabbed Postman - REST Client chrome extension.

Saddam Khan
  • 159
  • 1
  • 6