Skip to content

Logging doesn't seem to work (p13) #11050

@pentool

Description

@pentool

Hello,

Reading the 'Quick Tour' PDF book (https://symfony.com/pdf/Symfony_quick_tour_4.2.pdf).

On page 13/14 there's a code sample for using logging.

public function index($name, LoggerInterface $logger) {
    $logger->info("Saying hello to $name!");
}

The new log message will be written to var/log/dev.log.

I have never worked with Symfony before (hence reading the Quick Tour book) so I am not sure why logging is not happening. There's nothing in the 'var/log' directory.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions