process TEST = { service = MessageLogger { vstring destinations = { "detailedInfo.txt" , "critical.txt" , "cout" , "cerr" } PSet critical.txt = { string threshold = "ERROR" } PSet detailedInfo.txt = { string threshold = "INFO" } PSet cerr = { string threshold = "WARNING" } } untracked PSet maxEvents = {untracked int32 input = 5} path p = { myAnalysisModule } module myAnalysisModule = ModuleThatIssuesMessages { } source = EmptySource { } }The service = MessageLogger { ... } parameter tells the framework that you wish to have available the MessageLogger service. Parameters configuring that service appear between the braces.
Although messages can be issued without having asked for the service, it is strongly recommended that jobs which may send messages include this in their .cfg file.