coldbox 3.5 - Logger Plugin - canError()?

Hi guys,

I was testing out 3.5 today in my app and I received this error…

The method canError was not found in component D:\wwwroot\myapp\common\frameworks\coldbox\system\plugins\Logger.cfc.

The code that is trying to execute is something like this…

if(log.canError()){

log.error(“Aw Snap!”,rc);

}

Have the utility functions of canError(), canInfo(), canWarn(), canFatal(), and canDebug() gone away in 3.5?

I checked the logger plugin and don’t see them in the function list.

Thanks.

Nolan

Hi Luis,

Can you confirm if these utility functions have been removed in 3.5?

Thanks.

Nolan

Nolan,

I still see the functions in the development branch (3.5.2) of ColdBox ( https://github.com/ColdBox/coldbox-platform/blob/development/system/logging/Logger.cfc ).

When you dump “log” do you see the methods?

Thanks,

Aaron

Hey Aaron,

Thanks for your reply.

Yep, I see them when I dump out log. that’s strange that I got that error, because the methods are there.

I’ll have to see if I can reproduce again.

Thx.

Nolan