logfile

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

logfile

Davide Ciofetti
hi,
i'm executing without to modify ofbiz 13.07 release.

I can see ofbiz messages on the screen, but it is an unconfortable method,
expecially when I need to send some message here in the list.

in order of overcome this, i use (on windows) this command: ant start >
[logfile].
even this is an unconfortable method: it permit to export all the messages
but it's really unconfortable to seemessage in realtime, because it outputs
only in the logfile.

is there a method to see on the console and to write in a file at the same
time? i searched on the net but i have found nothing. is there already a
link?

Davide
Reply | Threaded
Open this post in threaded view
|

Re: logfile

anahita goljahani
Hi (ciao) Davide,

      does it help to know that log files, automatically created by OFBiz,
can be found under ofbiz_home/runtime/logs?

Anahita



2015-01-14 18:34 GMT+01:00 Davide Ciofetti <[hidden email]>:

> hi,
> i'm executing without to modify ofbiz 13.07 release.
>
> I can see ofbiz messages on the screen, but it is an unconfortable method,
> expecially when I need to send some message here in the list.
>
> in order of overcome this, i use (on windows) this command: ant start >
> [logfile].
> even this is an unconfortable method: it permit to export all the messages
> but it's really unconfortable to seemessage in realtime, because it outputs
> only in the logfile.
>
> is there a method to see on the console and to write in a file at the same
> time? i searched on the net but i have found nothing. is there already a
> link?
>
> Davide
>
Reply | Threaded
Open this post in threaded view
|

AW: logfile

iwolf
In reply to this post by Davide Ciofetti
Hi Davide,

you could use PowerShell (Start --> Search --> Powershell):

c:\ant start | Tee-Object -file c:\file.txt

Or just output the changes in the logfile (also Powershell)

C:\get-Content c:\Debug.log –Wait

Hope that helps.
Ingo


-----Ursprüngliche Nachricht-----
Von: Davide Ciofetti [mailto:[hidden email]]
Gesendet: Mittwoch, 14. Jänner 2015 18:35
An: [hidden email]
Betreff: logfile

hi,
i'm executing without to modify ofbiz 13.07 release.

I can see ofbiz messages on the screen, but it is an unconfortable method, expecially when I need to send some message here in the list.

in order of overcome this, i use (on windows) this command: ant start > [logfile].
even this is an unconfortable method: it permit to export all the messages but it's really unconfortable to seemessage in realtime, because it outputs only in the logfile.

is there a method to see on the console and to write in a file at the same time? i searched on the net but i have found nothing. is there already a link?

Davide
Reply | Threaded
Open this post in threaded view
|

Re: logfile

Ruth Hoffman-4
In reply to this post by Davide Ciofetti
Hi Davide:
Don't know about you, but on my 13.07 release I can run with an "ant
start" which directs logging to the command-line as well as the primary
log file, concurrently. This file is in ~/runtime/ofbiz.log.

All this to say that OFBiz is already doing that - displaying to the
console and writing to the ofbiz.log file simultaneously. This might not
be possible on a Windows system based on some file locking constraints -
I don't know. But on a Unix system it works just fine.

Best Regards,
Ruth Hoffman
[hidden email]
On 1/14/15 12:34 PM, Davide Ciofetti wrote:

> hi,
> i'm executing without to modify ofbiz 13.07 release.
>
> I can see ofbiz messages on the screen, but it is an unconfortable method,
> expecially when I need to send some message here in the list.
>
> in order of overcome this, i use (on windows) this command: ant start >
> [logfile].
> even this is an unconfortable method: it permit to export all the messages
> but it's really unconfortable to seemessage in realtime, because it outputs
> only in the logfile.
>
> is there a method to see on the console and to write in a file at the same
> time? i searched on the net but i have found nothing. is there already a
> link?
>
> Davide
>