I've added a Wiki article here:
http://wiki.github.com/dpp/liftweb/logging-in-lift
/Jeppe
- IRC
.....although I don't seem to get any deprecation warnings when using
eg Log.info
Can somebody confirm if the deprecation works?
/Jeppe
--
You received this message because you are subscribed to the Google Groups "Lift" group.
To post to this group, send email to lif...@googlegroups.com.
To unsubscribe from this group, send email to liftweb+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
Not sure what this means? Do the generated jars on scala-tools not
contain deprecation info or does the compilation of Lift itself not
show deprecation warnings?
If the former, this would explain what I see. If the latter, I added
<args>
<arg>
-deprecation
</arg>
</args>
to my own pom and would expect this to show the warnings....
/Jeppe
I think the main reasons deprecations are not shown for stuff like
Log.info is that deprecation of objects doesn't work
https://lampsvn.epfl.ch/trac/scala/ticket/3115. I've made a new ticket
so we can deprecate all the members instead....
/Jeppe
The Logger trait seems to work fine though looking at the code I can't
see how setup gets called.
The Loggable trait is throwing a null pointer exception.
I'm using Log4J.
Stuart.
P.S. I don't want to mess with other people's wiki pages, but I
wonder whether it is worth consolidating the pages: "How To: Configure
Logging" and "Logging in Lift".
On Mar 2, 12:49 am, aw <anth...@whitford.com> wrote:
> Very nice! I am looking forward to this.
>
> On Feb 28, 8:14 am, Jeppe Nejsum Madsen <je...@ingolfs.dk> wrote:
>
>
>
> > The newloggingcode is now in master and should be fully usable.
> > Therefore, the existingloggingcode has been deprecated.
It should be called when the lazy val checkConfig is being initialized.
>
> The Loggable trait is throwing a null pointer exception.
>
> I'm using Log4J.
Could you show (part of) the stacktrace? There's another glitch with
the Logger specs in the 2.8 branch so I may get some time to look at
this soon.
>
> Stuart.
>
> P.S. I don't want to mess with other people's wiki pages, but I
> wonder whether it is worth consolidating the pages: "How To: Configure
> Logging" and "Logging in Lift".
It's a community wiki. Feel free to edit :-) And you're right they
should be consolidated. I actually thought I did a search before
creating the new page...oh well.
/Jeppe
On 04/03/10 10:42 PM, Stuart Roebuck wrote:
> Trying this on 2.8 with the 2.8 Lift Snapshot.
>
> The Logger trait seems to work fine though looking at the code I can't
> see how setup gets called.
>
> The Loggable trait is throwing a null pointer exception.
Yes, this is a known one. We encountered this in LoggingSpec too.
Jeppe/myself would look into it.
I've pushed a change to the 280_port_refresh branch that should fix this
/Jeppe