Tracy logSeverity – config.neon – set multiple levels

SamuelThorn
Member | 28
+
+1
-

Hello,

I am trying to set logSeverity to a “E_NOTICE | E_WARNING” level in my config.neon. So far without success. I feel I am missing something fundamental here.

The state I need:

tracy:
	logSeverity: E_NOTICE | E_WARNING

But to this i get Warning: constant(): Couldn't find constant E_NOTICE | E_WARNING

When I tried this:

tracy:
	logSeverity: [E_NOTICE,E_WARNING]

I got Nette\DI\InvalidConfigurationException: The option ‘tracy › logSeverity’ expects to be scalar, array given.

When I used single parameter like…

tracy:
	logSeverity: E_NOTICE

…it worked fine.

Can you please give me some advice?

Jan Mikeš
Member | 771
+
+2
-

Hi, check this out: https://github.com/…y/issues/409

What version of tracy are you using? It is fixed in master (released in v2.7.4).

Last edited by Jan Mikeš (2020-04-12 16:44)

SamuelThorn
Member | 28
+
0
-

Jan Mikeš wrote:

Hi, check this out: https://github.com/…y/issues/409

What version of tracy are you using? It is fixed in master (released in v2.7.4).

Thanks for the info. I was using version 2.7.3 of Tracy. Now it all works as needed. Thank you.