Is it possible to change the layoutpattern programmatically, save the old pattern and revert to it later. If so, how? The reason I'm doing this is because I want to have header lines in my logs like such....
=================== XYZ Function ==============
where I don't want any formating to make it cleaner. I was looking for something like.
my $old_layout = $logger->get_layout;
$logger->layout("");
$logger->debug(========= Func BLA =====)
$logger->layout($old_layout);
Now I know there no such function but is there a way to do it?
Raphael
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Is it possible to change the layoutpattern programmatically, save the old pattern and revert to it later. If so, how? The reason I'm doing this is because I want to have header lines in my logs like such....
=================== XYZ Function ==============
where I don't want any formating to make it cleaner. I was looking for something like.
my $old_layout = $logger->get_layout;
$logger->layout("");
$logger->debug(========= Func BLA =====)
$logger->layout($old_layout);
Now I know there no such function but is there a way to do it?
Raphael