Trace() via stdout instead of log file?

I'm new to Flex. I'm developing on a Mac running 10.5. I
discovered the information about mm.cfg, flashlog.txt, and the
debug flash player.
I was wondering if it's possible to have trace() send its
statements to stdout instead of to a log file. I run the debug
player from the command line anyway, so it would be awfully
convenient.
On a (possibly) related note, does anybody know what
TraceOutputFileEnable in mm.cfg actually does? As far as I can
tell, it has no effect on whether or not the logfile is
used.

I clobbered together a solution to my problem. I wrote a
shell script that does what I want. It's a simple one-liner and,
most importantly, does not require that you create a mm.cfg file.
quote:
(path to the debug player)/Flash\
Player.app/Contents/MacOS/Flash\ Player $* 2>&1
It seems that the debug player actually writes its trace
output to stderr, but also apparently redirects stderr to the
flashlog.txt file. This script redirects stderr to stdout. I also
launch the player by specifying the executable inside the
application's container. This has two side effects: it blocks the
shell until the player quits, and it allows me to start multiple
players.
I hope this was useful to somebody else! Being able to see
the output of Flash Player in realtime is really important. If
anybody from Adobe reads this, it would be nice for this to be a
supported feature in future versions of Flash Player.

Similar Messages

  • Stdout and stderr log files

    hello everyone,
    I recently used Oracle SOA Suite 10g to deploy my WAR file in it, i found the log file which contains the stdout and stderr in "ORA_HOME\opmn\logs\default_group~home~default_group~1.log".
    My question is: How can I view this log file through the Application Server Control?

    Hi Hussam,
    received your screen shot and it just misses the vital pieces, the content above the blue line. On the upper right left you will find four links called Setup, Logs, Help, Logout. Logs might be greyed out and not working. To make this working click on the name of type Application Server (J2EE.wbt in your case). This will open a page for the Application Server. Logs should be a normal link now.
    --olaf                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Log file variables

    Hi
    I am taking the following steps to try to generate my log file from an ODI variable:
    1. Create an ODI variable say called ESSBASELOG, give it a path and file e.g. D:\ODI\Errors\Essbase\essload.err
    2. In your interface in the KM options for the log filename enter #ESSBASELOG.
    3. Create a package, drag the variable and set it to declare, drag the interface, join them up, execute.
    But for some reason, the path is not recognised, and instead the log file is generated in the ODI bin directory with the variable name as the log name ie.#ESSBASELOG.
    Can anyone suggest what I should try to resolve this?
    Cheers

    Hi,
    Qualify your variable name with your project code .
    i.e #<PROJECT_CODE>.<VARIABLE_NAME>
    Thanks,
    Sutirtha

  • How to find the log file

    Hi,
    I am using include directive for including a jsp and i am able to trace the errors in a log file(say mod_servj) but when i use action directive i am unable to find the errors.Can anyone please help me out.

    Try to check in the following location
    /u02/soasitap/sitap/FMW_HOME/user_projects/domains/sit_domain/servers/
    AdminServer/logs/AdminServer.log
    The same way you can check the log file for the SOA server also.
    Mark the posting appropriately as "helpful" or "correct answer", if your issue is solved.
    Regards
    Albin I
    [http://www.albinsblog.com/]

  • Adobe Acrobat 9 Pro making .log files instead of .pdf files

    I just uninstalled Acrobat 9 from one computer and installed it on my new one.  Now when I try to create a .pdf, it's creating a .log file instead. I have tried uninstalling again and installng it. Also, there is NOT a pdf hiding somewhere else. The program worked before on my other computer.

    If you are receiving a .log file, it typically means that an error has occurred during the creation of the PDF file from a PostScript or EPS file via the Distiller. Open up the .log file in NotePad (assuming you are on Windows) and see what it says! Likely, the problem is that you new system is missing some fonts from your old system.
            - Dov

  • Trace file with different name is alert log file.

    I am strange today
    i found a trace file generated in alert log file with name
    /bdump/stlbas_cjq0_1880.trc:
    but when i am trying to find out in bdump folder i cannot found
    any file with this named. instead i found /bdump/stlbas_cjq0_1853.trc
    is there any possibility of being this scenario ?
    database version:- 10.2.0.4
    Os:- sun solaries spark 64 bits
    Regards
    Halim

    The trace file has been removed/deleted from an OS user. I think you should verify that with OS logs.
    Thanks

  • How to trace log file of Lumira Agent

    Hi All,
    I found Lumira Client log file in "C:\Program Files\SAP Lumira\Desktop\debug.log". It maintains all logs like registerResourcePath,Registering Datasource, etc.
    But Lumira Agent not maintain any log for
    how many new rows added in local data source or cloud data source?
    any connection error for Lumira cloud?
    any Scheduler error for starting?
    refreshing start time?
    etc
    Is it any tool or any file that maintain log?
    Thanks,
    Somnath A. Kadam

    Hi,
    1. an indicator of the # delta rows is not something that exists in the product yet. it would make a nice enhancement actually.
    2. Yes, the lumira desktop log file (as discussed in your other thread) would capture cloud login errors. but obviously, it is not possible for you to see the traces from the cloud infrastructure.
    3. the refresh timestamp would be maintained on the resulting scheduled document (information in the footer)
    4. Internally, we are asking for information about tracing the Agent - this is a very valid point.
    I believe that these issues are also being tracked internally via your Support ticket? personally, i would recommend that you focus on that investigation with engineering.
    Regards,
    H

  • Rotate Log Files - stdout.log & stderr.log

    Hi Folks,
    Whats the best way to rotate stdout.log & stderr.log.
    I am assuming that rolling of these files can not be configured using felix (please correct me if I am mistaken)
    Please advice!
    Thanks,
    Adnan

    Hi Adnan,
    There is currently no way to rotate stdout.log and stderr.log. Therefore, if you want to preserve the stdout.log and stderr.log so that they do not get truncated after restart, add the following commands before any other command in the start script.
    # Move stdout.log and stderr.log
    mv ../logs/stdout.log ../logs/stdout_$(date +%Y-%m-%d-%H%M).log
    mv ../logs/stderr.log ../logs/stderr_$(date +%Y-%m-%d-%H%M).log
    Another possible way is to disable the stdout.log and stderr.log entirely and instead output the information to the startup.log. Then you can rotate the startup.log instead.
    a) To disable the stderr.log and stdout.log, i guess you can add these lines to your crx-quickstart/server/start script:
    QUICKSTART_OPTS='-verbose -nobrowser'
    export QUICKSTART_OPTS
    b) To configure the path of the startup.log, you can add this to the start script as well (replace /path/to/startup.log with the path you would like the log to be written to instead):
    CQ_LOG=/path/to/startup.log
    export CQ_LOG
    c) Then after doing this, there is a side effect that crx output will go to the startup.log as well. to fix this, do the following:
        1) Go to crx-quickstart/server/runtime/0/_crx/log4j.xml
        2) Comment out this element <appender-ref ref="console" /> from log4j.xml
    <root>
    <level value="info" />
    <!-- appender-ref ref="console" /-->
    <appender-ref ref="error" />
    </root>
    d) Also, now you would like to rotate the startup.log file:
    "The file startup.log logs messages while the Servlet Engine starts. It is usually small, and you cannot configure it."
    The startup log cannot be rotated with CQSE facilities. Please note that logs under /server is rotated at operating system level,
    for more info see http://httpd.apache.org/docs/2.0/programs/rotatelogs.html
    Unix workaround :
    in serverctl script, replace the line :
    exec $jvmExe >> "$CQ_LOG" 2>&1
    by : 
    exec $jvmExe | /usr/sbin/rotatelogs "$CQ_LOG.%Y%m%d" 86400 >> /dev/null 2>&1
    If this doesn't seem to work, then try
    exec $jvmExe 2>&1 | /usr/sbin/rotatelogs "$CQ_LOG.%Y%m%d" 86400
    Unfortunately, I did not found any workaround for windows system.
    Hope this helps.
    Thanks,
    Varun

  • How can I extract the data from a Real-time Execution Trace ".log" file?

    I would like to get the data for the traces from the Real-time Execution Trace toolkit ".log" file to read in Excel and generate a report.

    Hi Chuck,
    Have you tried reading it into a text or binary file first and then generating a report using the Report Generation VIs?
    Ipshita C.
    National Instruments
    Applications Engineer

  • GlassFish View Log File opens in editor instead of console

    How to reproduce:
    Open the Servers view, and bring up the context menu for a GlassFish server
    Select GlassFish > View Log File
    Actual: Log file is opened in an editor. Every time the file is changed, a popup is shown to ask whether the contents should be reloaded (unusable)
    Expected: Log file is opened in Console view and provides the usual reloading and scrolling behavior
    Eclipse: 4.3.0 (Kepler) (Platform 4.3.0.I20130605-2000)
    GlassFish Tools: 6.0.3.201306271729
    The question is: Can this bug please be fixed?

    I've noticed that search is sometimes quirky in the console, yes. But that always felt like a bug in platform. Other than searching, usability of the console is superior: Automatically scrolling, Clear Console, Scroll Lock, Show Console when output changes, being in a view instead of an editor.
    The editor is so bad that some people here refuse to upgrade to the new plugin version, instead installing the Indigo version from old workspaces.
    How about just offering both in the context menu? They could be named something like View Log in Console and View Log File in Editor.

  • Mapping Errors Log file to be sent via FTP

    Hi All,
    Functional specs of a file to file scenario require to create an aditional log file containing the file name, creation date and a list with the lines were a problem occurred with an error description and then send it to R3 via FTP.
    Does anyone know if it's possible or not? and if it's possible, how could I do that?
    Thanks in advance.
    Cheers.

    Daniel,
    This is possible.
    1. To get the Source File name and and appned the date to it, you can use Adapter Specific Identtifers -- File Name in the Sender and receiver file adapter and in the message mapping, set the file name using this code,
    2. Rest of error handling can error record creation for the error file can be handled via the mapping itself.
    String newfilename="";
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
    // Get Sourcefilename
    String oldfilename=conf.get(key);
    //get the date
    java.text.SimpleDateFormat dateformat = new java.text.SimpleDateFormat( "yyyyMMdd" );
    dateformat.format( new java.util.Date() );
    //append source+date+L
    String nwfilename=oldfilename+dateformat;
    conf.put(key, newfilename);
    Regards,
    Bhavesh

  • How to identify exception stack traces in  log files programmatically

    Hello,
    I would like to develop a utility program which audits the command line or log files and detects exceptions.
    Do you know any good way of identifying exception stack traces from a stream?
    Are you aware of any existing tool that does something similar?
    Thank you in advance,
    Kostas

    I tried to copy/paste the entrire log file in the console but it seems that the copy/paste functionality in not included in the console pane.
    Regardless that problem is there any way to do that programmatically from my application?

  • Win 2008  WL 10.3.3 stdout appearing in .log and .out files

    Recently noticed a ballooning [ServerName].out file in the logs directory. In weblogic management console I do have it configured to redirect stdout and stderr to weblogic logging (.log file). Both the .log and .out file contain the same stdout/stderr information. I would like to eliminate the .out file if possible (since WL only rotates the .log), but cannot find where it is configured. The managed servers are NOT windows services (no -log option).
    Did not find any logging parameters in JAVA_OPTIONS or paramters in the startManagedSvc.cmd file.
    Is this something needing to be corrected at the application level? (log4j)

    opie wrote:
    Recently noticed a ballooning [ServerName].out file in the logs directory. In weblogic management console I do have it configured to redirect stdout and stderr to weblogic logging (.log file). Both the .log and .out file contain the same stdout/stderr information. I would like to eliminate the .out file if possible (since WL only rotates the .log), but cannot find where it is configured. The managed servers are NOT windows services (no -log option).
    Did not find any logging parameters in JAVA_OPTIONS or paramters in the startManagedSvc.cmd file.
    Is this something needing to be corrected at the application level? (log4j)Depends on what you are actually seeing in those files. Are you outputting log4j messages to a log file AND the console?
    Here is a snippet of the log4j configuration file that denotes writing to the console:
        <appender name="ConsoleAppender" class="org.apache.log4j.ConsoleAppender">
            <layout class="org.apache.log4j.PatternLayout">
                <param name="ConversionPattern" value="%d{yyyy-MM-dd hh:mm:ss} %-5p [%t] - %C{1}.%M -> %m%n" />
            </layout>
          </appender>
        <root>
            <level value="ALL" />
            <appender-ref ref="ConsoleAppender" />
        </root>Edited by: ForumKid2 on Dec 29, 2010 11:36 AM

  • Question regarding alert log file and trace files

    What should be the alert log file size ? And when should it be deleted? And for how many days user trace files should be kept?
    Also will anyone please tell me the importance of these files.
    Thanks

    This may help: http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14231/manproc.htm#sthref729
    There are a few discussions on it here:
    Re: Alert Log File
    alert log file contents viewing
    Re: how to read alert log file? is there any tool available?

  • Diff between Log files and Trace files

    hi
    What is the exact differences between Log Files and Trace Files.
    And the relevant informative URL/reference materils would be highly appriciated.
    Thanks
    Sekhar

    Hi,
    Go through these,
    http://help.sap.com/saphelp_nw04/helpdata/en/d1/7b1e40777cdd5fe10000000a155106/frameset.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/0bf8c890-0201-0010-8b8c-fc93fa1f4795
    Hope it clarifies
    Regards
    Srinivasan T

Maybe you are looking for