Click here to Skip to main content
15,891,708 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I have defined my own custom back-end to log into a file using pantheios.

My log function call is like this

log(debug,"statement to be logged",module name,file name);

I want to do some processing with module name and file name at back-end and then log them into the file. so I'm getting from front-end.

Now How do I separate these 3 arguments,since all is coming as a single char array to back-end.For now I'm using a delimiter "\n" to separate them.But I need a better way of doing this.Is there any other way to do this in pantheios???

Please help me to do this

Thanks in advance
Posted
Comments
Santhosh G_ 5-May-13 2:44am    
To parse lines and strings from a character buffer, we can use stringstream. Is it possible to use stringstream ?
Subha Elangovan 6-May-13 4:10am    
Thanks for the reply. But I dont want to parse by giving a hard-coded delimiter. I need some other way especially a pantheios way of dealing this

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900