I try the absolute path as
file="/home/wujun/ITIMDBClient/shell/myApp.log" same issue, 
so I use relative path 
file="myApp.log"

-----Original Message-----
From: [email protected] [mailto:[email protected]] On 
Behalf Of Wu, Jun 2
Sent: Friday, August 03, 2012 11:23 AM
To: logback users list
Subject: Re: [logback-user] can not generate log file in unix box but console 
show log msg

I try the absolute path file="/home/wujun/ITIMDBClient/shell/myApp.log" same 
issue, so I use relative path file="myApp.log"

Thanks!


-----Original Message-----
From: [email protected] [mailto:[email protected]] On 
Behalf Of Robert Elliot
Sent: Friday, August 03, 2012 11:20 AM
To: logback users list
Subject: Re: [logback-user] can not generate log file in unix box but console 
show log msg

It seems your file has no path, so it will be created in whatever the base 
directory is of the java process running logback.  If you don't know where that 
is then specify a precise path (e.g. /var/log/<yourapp/myApp.log) where you 
would like it to be.

----- Original Message -----
> From: "Jun 2 Wu" <[email protected]>
> To: [email protected]
> Sent: Friday, 3 August, 2012 4:16:09 PM
> Subject: [logback-user] can not generate log file in unix box but console 
> show log msg
> Hello Guys,
> 
> 
> 
> I try Logback in IBM AIX unix box. I can not find log file, but
> ConsoleAppender works fine.
> 
> 
> 
> I try my test file in Windows, it can generate log file.
> 
> 
> 
> Can some body help me?
> 
> 
> 
> >JVM:
> 
> java version "1.5.0"
> 
> Java(TM) 2 Runtime Environment, Standard Edition (build
> pap32dev-20100813 (SR12 FP1 ))
> 
> IBM J9 VM (build 2.3, J2RE 1.5.0 IBM J9 2.3 AIX ppc-32
> j9vmap3223-20100808 (JIT enabled)
> 
> 
> 
> >Logback.xml for FileAppender configure:
> 
> < appender name = "FILE" class = "ch.qos.logback.core.FileAppender" >
> 
> < file > myApp.log </ file >
> 
> < encoder >
> 
> < pattern > %date %level [%thread] %logger{10} [%file:%line] % msg %n
> </ pattern >
> 
> </ encoder >
> 
> </ appender >
> 
> 
> 
> >My AIX information:
> 
> Version: 6.1.0.0
> 
> 64bit
> 
> 
> 
> Thanks in advance!
> 
> 
> Regards,
> 
> Jun Wu | Senior Developer| Web Services Department | Deposit Products
> and Business Banking Technology | CIBC
> (416)-780-5042 | [email protected]
> 
> This email message and any attachments are CONFIDENTIAL. If you have
> received this message in error, please notify us immediately by return
> email and delete this message and any attachments without disclosing
> or distributing them further. Thank you .
> Ce courriel, ainsi que toute pièce jointe, est CONFIDENTIEL. Si vous
> avez reçu ce message par erreur, veuillez nous en aviser surle-champ
> en nous le renvoyant et le supprimer, ainsi que toute pièce jointe,
> sans en avoir divulgué ou diffusé le contenu. Merci.
> 
> 
> _______________________________________________
> Logback-user mailing list
> [email protected]
> http://mailman.qos.ch/mailman/listinfo/logback-user
_______________________________________________
Logback-user mailing list
[email protected]
http://mailman.qos.ch/mailman/listinfo/logback-user
_______________________________________________
Logback-user mailing list
[email protected]
http://mailman.qos.ch/mailman/listinfo/logback-user
_______________________________________________
Logback-user mailing list
[email protected]
http://mailman.qos.ch/mailman/listinfo/logback-user

Reply via email to