How to log notice level on a live enviroment

<%- if @topic_view.topic.tags.present? %>
<%= t 'js.tagging.tags' %>: <%- @topic_view.topic.tags.each do |t| %> <%= t %> <%- end %>
<% end %>

Silverstripe Version: 4.4.4

Question:

I am wanting to log more details on the error logging to capture a few bugs. The current error level recording does not give enough meaningful information.

I want to use the notice level and above. But this doesn’t seem to work on a “live” environment. Only logs error and above.

Also tried:
Only:
environment: dev

How do I get notice level logging working on a live site?

Thanks

Current yml debugging code:

---
Name: debug
---
SilverStripe\Core\Injector\Injector:
  Psr\Log\LoggerInterface:
    calls:
      LogFileHandler: [ pushHandler, [ %$LogFileHandler ] ]
  LogFileHandler:
    class: Monolog\Handler\StreamHandler
    constructor:
      - "silverstripe-errors.log"
      - "notice"

What type of errors are you expecting to see with this change? (E.g. More Silverstripe reported errors? Or more PHP reported errors?).

Often Live / Production environments have PHP settings configured so that the reporting error level of PHP is only Warning or Fatal. You may need to also update these settings if you are wanting to see more PHP Notice errors.