process TEST = { service = MessageLogger { untracked vstring destinations = { "detailedInfo.txt" , "critical.txt" , "cout" , "cerr" } untracked PSet critical.txt = { untracked string threshold = "ERROR" } untracked PSet detailedInfo.txt = { untracked string threshold = "INFO" } untracked PSet cerr = { untracked string threshold = "WARNING" } } path p = { myAnalysisModule } module myAnalysisModule = ModuleThatIssuesMessages { } source = EmptySource {untracked int32 maxEvents = 5} }The vstring destinations = {"detailedInfo.txt", ... } parameter establishes one or more file (or ostream) destinations for the messages issued. The destinations can be configured individually to establish filtering of messages.
If messages are issued prior to the initiation of the MessageLogger service, the configuration of these destinations will not yet have occurred. Such messages will be sent to cerr.
-- SudhirMalik - 10-Aug-2010