What are the Slack Archives?

It’s a history of our time together in the Slack Community! There’s a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.

Because this space is not active, you won’t be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..

Logging to log file not working

U04TQ9UG04U
U04TQ9UG04U Posts: 25 🧑🏻‍🚀 - Cadet
edited May 2023 in Help

Hi all,
I'm trying to log information into the log file but all the methods I use do not seam to work. They don't return an error but the logs are not visible in the logs dashboard.

Does anyone know how to log things in Spryker ?

Comments

  • U04V0L4ATAQ
    U04V0L4ATAQ Posts: 11 🧑🏻‍🚀 - Cadet

    search for "LoggerTrait" in files in vendor/spryker and you will find examples how they log errors and such.

  • U04TQ9UG04U
    U04TQ9UG04U Posts: 25 🧑🏻‍🚀 - Cadet

    thanks ! the logged information is lost in a lot of static but it's there thanks to the LoggerFactory::getInstance()