# PR_NewLogModule The `PRLogModuleInfo` structure controls logging from within your application. To log your program's activity, create a `PRLogModuleInfo` structure using `` :ref:`PR_NewLogModule `` \<>\`\_\_ . ## Syntax ``` #include typedef struct PRLogModuleInfo { const char *name; PRLogModuleLevel level; struct PRLogModuleInfo *next; } PRLogModuleInfo; ```