This was the bit I was missing!  Thanks!

--Tom Noonan II


On Wed, Feb 6, 2019 at 3:45 PM Eric Covener <cove...@gmail.com> wrote:

> On Wed, Feb 6, 2019 at 3:38 PM Tom Noonan <t...@joinroot.com> wrote:
> >
> > Good afternoon:
> >
> > I've written a custom Apache2 module and I'm having some difficulty with
> logging.  Logging is working as expected using the global log level.  For
> example, if I set the following I get debug logs from my module:
> >
> > LogLevel Debug
> >
> > However, if I attempt to set the loglevel for only my module I do not
> see debug logs:
> >
> > LogLevel Warn mod_proxy_jwt_auth.c:Debug
> >
> > In looking at the logs I see other modules output "[date]
> [module_name:level]" whereas mine is outputting "[date] [:level]".  I'm
> guessing this is a factor in the per-module log level not working and that
> I'm getting some part of the module API wrong.  However, I reviewed
> https://httpd.apache.org/docs/2.4/developer/modguide.html and I simply
> don't see my error.
> >
> > The source of my module is here:
> https://github.com/Root-App/mod_proxy_jwt_auth/blob/master/mod_proxy_jwt_auth.c
> >
> > Can anyone advise?  Thanks!
> >
> > --Tom Noonan II
>
> There is a slightly different way to do do the AP_MODULE_DECLARE_DATA
> stuff in 2.4 that results in this macro being added to your code:
>
> APLOG_USE_MODULE(proxy_jwt_auth)
>
> You can also just add it explicitly, which is needed if you use
> multiple C files for the module.
>
> The alternate way is module AP_MODULE_DECLARE_DATA
> mod_proxy_jwt_auth_module; at the top and
> AP_DECLARE_MODULE(proxy_jwt_auth) -- you should see that pattern in
> the standard mods in 2.4.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>

Reply via email to