From: Johan V. <jvr...@sq...> - 2005-04-10 08:27:47
|
Hi, I'm using Wx::LogTextCtrl for logging, and I try to change the time stamp that gets prepended to each message. However, changing the time stamp format produces strange results. For example (using the samples/controls/controls.pl), I changed: $this->{OLDLOG} = Wx::Log::SetActiveTarget( Wx::LogTextCtrl->new( $this->{TEXT} ) ); to my $t = Wx::LogTextCtrl->new( $this->{TEXT} ); $t->SetTimestamp("xxx"); $this->{OLDLOG} = Wx::Log::SetActiveTarget($t); Now, all messages are prepended with "test" (not "xxx"). Printing the result of GetTimestamp (before changing it) reveals that it is "%X", but even when I do: $t->SetTimestamp('%X'); or $t->SetTimestamp($t->GetTimestamp); I get this "test" prefix. Am I overlooking something? -- Johan |