Custom file logging

Fellow Developers,
I am new to ID CS3 plug-in development and am trying to log commands (implemented a document observer) to a custom log file. Whats the best way to log?
- TRACEFLOW (found this macro in another posting)?
- MessageLog (found this in ID Server doc)
Thanks

Found it. Its TRACELOG. Gettingstarted tutorial mentioned it.
My bad - should have looked harder.

Similar Messages

  • Biztalk custom File Adapter

    Hi,
    Recently i have faced this below issue. please guide me if any one already faced similar issue. i am using Biztalk server 2013
    "Could not stop the BizTalk Service BizTalk Group : BizTalkServerApplication 
    service on Local Computer. 
    Error 1053: The service did not respond to the stop or control request in a 
    timely fashion
    when i checked event log, i am getting like
    "A timeout was reached (30000 milliseconds) while waiting for the BizTalk Service BizTalk
    Group "
    this is came after i deployed the custom file adapter.
    Actually i took the sdk samples[File Adapter] from biztalk server location path , for doing zero byte file receving process.
    I made few lines of code for promoting few properties.
    then, i used registry file to register the assemblies.
    Now i am able to receive the zero byte files and send the same file to some other location vai send port. It is woking perfectly. 
    but when i tried to restart the host instance , i am getting the above error. i am not sure why it is coming.
    i am sure about that i am getting this error if i am used custom file adaper. since if i run other  biztalk application , i dont have any issue. but if i run , the custom file adapter application . i am able to recreate this issue.
    Also, i debugged, and find out which place i am getting
    this.batch.SubmitMessage(file.Message, file.UserData); this is the method call to push the msg to biztalk db. I think some references object are not removed. when i verified the method call, it goes several event handler function. i am unable to follow that.
    Can any one help me is there any this i need to do in custom file adapter?

    Hi,
    No.it is not hanging in debugger. I am able to process the message . after that stopped the application as well, that means all the received locations are disabled. 
    but when i tried to restart the host instance, Host instance not stopping even when the application was stopped at that time.
    Also i find out one more step. if i just start and stop the application . there is no issue while restarting host instance.
    but after started the app, i tried to put one file in received location [custom file adapter], then the file is picked and the message is send to messagebox DB and send to send port. now i stopped the app, and try to restart the host instance , that time
    i am getting error.
    but if i wait for 1 more minute , service will automatically started. i don't understand this behavior.
    These are the exact below steps i did that in custom file adapter. i followed this url to do the custom file adapter http://ninocrudele.me/2012/07/05/biztalk-and-zero-byte-file/
    1. I took the SDK file adapter samples[runtime, design time and adapter management] in Biztalk installation path.
    2. add few lines of code in PickUpFilesAndSubmit
    // If we couldn’t lock the file, just move onto the next file
    IBaseMessage msg = CreateMessage(fileName, renamedFileName);
    //new code
    MemoryStream ms = new MemoryStream();
    msg.BodyPart.Data.CopyTo(ms);
    msg.BodyPart.Data.Position = 0;
    //new code end
    if ( null == msg )
    continue;
    if ( null == renamedFileName )
    files.Add(new BatchMessage(msg, fileName, BatchOperationType.Submit));
    else
    files.Add(new BatchMessage(msg, renamedFileName, BatchOperationType.Submit));
    //new code
    if (ms.CanSeek)
    ms.Position = 0;
    msg.BodyPart.Data = ms;
    //new code end
    3. build the 3 dlls.
    4. make the path change in the provided registry file and add the entry to the registry.
    5. add the adapter in admin console.
    6. create one application , create one receive port and send port. In the receive port, i used the custom file adapter.
    7. start the application and place one file in receive port . now the file is received and send to send port.
    8. now i  am trying to restart the host instance. that time i am getting the error which i above mentioned. but if i wait for 1 more minute , service will automatically started. i dont understand this behavior.
    Please help me , i facing this issue last few days . i tried maximum .but no clue.  it would be great if you guys provide if i need to check some thing else in the code part .
    Thanks
    Vinoth

  • Auditing and Custom error logging

    Guys,
    Can one of you tell me how can we do auditing in ODI i.e like say if load files how many records the file have and how many we have loaded for each file and how many are
    bad records etc and how many records we have inserted/updated in each table etc.
    Basically some sort of report we need to send in the end as audit report after odi batch run every day
    Can we do this in ODI?
    Is it possible to do sort of custome error logging like what we do in pl/sql, like inserting into error log table when ever oracle error comes or any runtime error which we need to insert into table etc.
    Can we do this kind of error handling ODI?
    Cheers
    Sri
    Edited by: aranisrinivas on 26-Nov-2011 10:13

    Just use below details for your required information
    '<%=odiRef.getPrevStepLog("STEP_NAME")%>'
    '<%=odiRef.getPrevStepLog("SESS_NO")%>'
    '<%=odiRef.getPrevStepLog("MESSAGE")%>'
    '<%=odiRef.getPrevStepLog("ERROR_COUNT")%>'
    You can get more details from below tables.
    1) snp_sess_txt_log -( It holds the scripts used for the task and session details)
    2) snp_sess_task_log-(It holds the time details error msg and all)
    3) snp_sess_task -( it holds the name of the task and technology , context details
    Thanks

  • Write SharePoint Custom Error logs into physical location

    Hi
       I need to programmatically write a custom error logs using SPDiagnosticsService class into my custom physcial location.
       But when i use SPDiagnosticsService it will write error logs into 15hive\logs folder instead i want to write into my physical location(say C:\Logs\Error.log)
       How to achieve this?
    Regards,
    Siva

    Hi,
    SPDiagnosticsService has a property 'loglocation' and it only points to one location. I reckon, you can not use one location for SharePoint log, another one for custom log - if you use SPDiagnosticsService. What I do for my SharePoint projects is, create
    a custom logger, which wrap the SPDiagnosticsService inside. Then My Logger class write the log into some custom location (configurable through web.config or by other means) as well as pass it to SPDiagnosticsService. Having a custom log file for custom solution
    helps to find problem very quickly and easily - which would be difficult if you would need to go through large log files. So I can suggest, write a custom logger, wrap SPDiagnosticsService  inside the cutom logger. Then on every Log Event, write in your
    cusotm file and if you want you can pass the event to SPDiagnosticsService  also.
    Thanks,
    Sohel Rana
    http://ranaictiu-technicalblog.blogspot.com

  • Custom File Name Format in B2B Console

    Hi,
    Please let me know if we can have a customized File Name Format in the B2B Console for the X12 EDI/XML Files.
    I have read the Oracle doc and only the following formats are mentioned:
    %FROM_PARTY%
    %TO_PARTY%
    %DOCTYPE_NAME%
    %DOCTYPE_REVISION%
    %MSG_ID%
    %TIMESTAMP%
    Is there a way to have a PO# (From the Trading Partner Payload) in the filename format?
    You help is appreciated.
    Thanks
    Priyanka G

    no. It has the format which helps B2B in identifying the agreement

  • How to create a custom file dialog box/vi (win)??

    Hello,
    I'd like to create a custom file dialog box to handle the reading of my tdms files. Basicly I want to extend the existing file select dialog box with a graphical preview of the data in the selected file. I know I can create all the logic for file selection by hand and use a list box to display the filelist, but I would rather prefer to somehow use the existing windows controls. So is it possible to get the windows file selector on the front panel of a vi and react to the user selection? If so, is there any example available on how to do this? Any other options? I'm using labview 8.2
    thanks for your input!
    klaus

    Klaus,
    I wouldn't know that Microsoft provides access to the controls that Explorer and file dialog consist of.
    There might be a different and more powerful solution though. The
    WINDOWS Explorer / file dialog have a plugin API that allows you to
    associate your own application for thumbnail creation with a particular
    file extension. That way, TDMS thumbnails will show in any instance of
    Explorer and
    File Dialog without you having to make your own dialog. Basically, you
    would need to compile the VI that creates the thumbnail into a
    LabVIEW-built DLL and then wrap this DLL with some C++ boilerplate code
    that Microsoft provides. You might want to have a look at the bottom of
    this article to get an idea of how the whole thing works:
    http://msdn.microsoft.com/msdnmag/issues/0600/w2kui2/default.aspx.
    Hope that helps,
    Herbert

  • Can I create an automatic custom file save name/path once I click digital signature field?

    Hi,
    What I'm trying to do is once I click on a digital signature and I add my digital signature it requires me to sign it.  I want to know if there's a workaround to where once I click it it will automatically save to a file name based on a field and to a pre-determined directory?  Say, if I want it to save to a users desktop.  My supervisor is wanting to eliminate his employees having to change the file name to the format he wants and selecting the save location and make it automatic for everyone to have it saved at the same location on their computers. 
    Will likely have everyone in the office create a folder named 'Leave Requests'.  This will be the location on the desktop where all these automatically saved files would go.  The custom file name would be Emp_Name + "Leave Request" + Date where Emp_Name and Date are 2 variables that are user inputted field values on the form.  I have looked around but there doesn't seem to be too much on this one.  I do realize I can't create a custom 'Save As' location and path name but I have read a little about creating a custom automatic save feature and wanted to know if I could implement that.  Here is the information I read about:
    http://acrobatusers.com/tutorials/print/how-save-pdf-acrobat-javascript
    I appreciate all help any of you can give me in this matter.  Thanks!!!

    This tutorial is great!
    http://mydesignpad.com/create-a-complex-html-email-signature-for-mail-on-mac-os- x-10-9-mavericks

  • DW CS3 - custom file extension no longer working correctly

    Hi - for a particular job, I needed to use a custom file
    extension .htmx and it has been working fine.
    However, I went into DW CS3 today, and the file opens in the
    DW editor, but the code coloring and code hints etc seem to be
    broken.
    I've checked the Extensions.txt and MMDocumentTypes.xml
    files, and all seems present and correct - see
    this screencast to
    see the problem.
    Any ideas why it's not working? (I'm on Vista Business, but
    it has definitely been working and now isn't....)
    Mike

    Well, I managed to fix it by overwriting my
    MMDocumentTypes.xml file with a clean version from another machine.
    Weird.

  • Custom File Accesor implementation in 6.1 MP1

    I have made an custom file accessor (IPTCustomFileAccessor) using the Portal Server API for a crawler that is crawling a news website. I found example of the implementation of a custom file accessor to ALI version 5 but it seems that it does not go the same way in version 6.1.
    Here is what I have done:
    1. copied my custom accessor .jar file to <PORTAL_HOME>\accessors\customfa.jar2. Created accesors.xml to <PORTAL_HOME>\settings\config with following content:
    <accessorlibs>
    <accessorlib name="sampleaccessor" path="accessors/" />
    </accessorlibs>3. After that restarted the Portal. When the portal is starting it gives me some error about 5.0 configs not suitable in 6.1
    After that I tried to use the 6.1's dynamic loads:
    1. I created a new folder named accessors to <PT_HOME>\settings\portal\dynamicloads and moved the accessors.xml to that location
    2. Restarted the portal and then I get an error message:
    1559     portal.xxxx.xxx     8-22-2007     10:57:56.250     Fatal     UI_Infrastructure     Thread-0     com.plumtree.uiinfrastructure.application.startup.LoadCustomLoads     Fatal Exception loading lib file: c:\bea\alui\settings\portal\dynamicloads\Accessors\accessors.xml
    com.plumtree.openfoundation.util.XPNullPointerException: XPDynamicDiscovery failed to find all needed information in the xml file: c:\bea\alui\settings\portal\dynamicloads\Accessors\accessors.xml. Please make sure that the file is formatted correctly.Does anyone have a clue how should the accessors.xml be formatted? Thanks in advance!
    Greets,
    Nils-Erik Siren

    SSO info - as well as most other portal config info that used to be in various XML files - was moved to $PT_HOME/settings/portal/portalconfig.xml in G6.
    john

  • Action hard codes custom file name

    I recorded an action to crop and save for web. I have done this 1000's of times over the years, but in CS6 it is hardcoding a Custom File Name, and in the wrong format too boot.
    I am saving as JPG only and accepting the default name, which should leave me with an action that has no custom name, yet it does, and the custom name is of an HTML file name.
    So, when I run my action, it names every single file the same name, and never creates a jpg.
    This is a new bug in CS6. It wasn't here before.
    I can't figure out how to get around it????
    Kirk

    Figured out a way to work around this, but it is irritating. Instead of my action doing this:
    Flatten
    Crop (user interaction)
    Save For Web
    Close (without saving)
    I have to do this:
    Flatten
    Save as JPG (in same directory where I want the Web file to go)
    Crop (user interaction)
    Save For Web (Over top last saved file)
    Close (without saving)
    For some reason, when I use the save as JPG, it doesn't custom code the file name and when I save for web in the same place it also doesn't custom code the file name.
    I never had to do this before in all the years of using this type of action, and I use it ALOT!
    I have found that it sometimes does not hardcode the file name, but there seems to be no rhyme or reason.
    Kirk
    Photoshop CS6 on Windows7-64, haven't tested this on my MBP

  • Custom File Info-panel stays empty

    Hi all!
    I want to create my first custom File Info panel and I have trouble with it.
    I use either a sample from the XMP-FileInfo-SDK-5.1 (e.g. "BasicControlSamplePanel") or even the "Generic" tool for simple XMP based panels.
    I use Photoshop CS4 (on Mac OS X 10.6.4) and so I copy the panels to "~/Library/Application Support/Adobe/XMP/Custom File Info Panels/2.0/".
    Now I look with Photoshop and I see the tab for the new panel but the content is empty...
    Of course I did no modifications on the samples for my first try.
    Any clues what's wrong here? I guess it may be a simple error because even the sample does not work...
    TIA,
    H.Sup
    PS. I did also a test on Win XPwith the same result.

    To answer my own question:
    The documentation really sucks.
    I found this reply from Adobe <http://forums.adobe.com/message/2540890#2540890>
    usually we recommend to install custom panels into the "user" location at:
    WINDOWS XP: C:\Documents and Settings\username\Application Data\Adobe\XMP\Custom File Info Panels\2.0\panels\
    WINDOWS VISTA: C\Users\username\AppData\Roaming\Adobe\XMP\Custom File Info Panels\2.0\panels\
    MAC OS: /user/username/Application Data/Adobe/XMP/Custom File Info Panels/2.0/panels/
    The reason why your panels did not work properly was a missing Flash trust file for that user location. Without such a trust file the embedded flash player refuses to "play" your custom panel.
    Please see section "Trust files for custom panels" in the XMPFileInfo SDK Programmer's Guide on page 50 for all details on how to create such trust files.
    After many wasted hours I have now the simple panels running.
    Cheers,
    H.Sup

  • Custom File Finder

    Hi everyone,
    I am trying to build a custom file finder to search for my mp3 files on my computer. As you can see my nickname, I am a DJ, so I have lots of mp3 files on many directories on my PC and sometimes it's difficult for me to find the song I am looking for. I want to take advantage of JAVA to build my file finder. I am planning on having two command line arguments. One with the path string and another with the filename and extension. (Just in case I want to use to find other files than .mp3 such as .wma, and .avi.)
    If you guys have any ideas how I can do this, please let me know. Also, if you have any example or references I can study from, I will really appreciate it.
    Thanks in advance.

    Like I said before, I was trying to write a code to search for files on my computer. The program would ask me for the path, and also for the filename and its extension. After that, the program would scan the whole directory and after the whole directory was scanned, I would get a list of all the files in there and the path of the file I was looking for. (only if the file was found.)
    After reading the file class, I got this code but I am not getting the path for the file. I only get the list of all the files on the directory. I think I got a logical error somewhere because the program is compiling and I am not getting run-time errors.
    If anyone have any suggestions on how I can fix my code or knows how to improve it, please let me know.
    Thanks in advance.
    import java.util.*;
    import java.io.*;
    public class FileFind
        static final int      MAX_DEPTH  = 20;  // Max 20 levels (directory nesting)
        static final String   INDENT_STR = "   ";                 // Single indent.
        static final String[] INDENTS    = new String[MAX_DEPTH]; // Indent array.
        static boolean done = false;
        static String found = "not found";
        //===================================================================== main
        public static void main(String[] args)
            //... Initialize array of indentations.
            INDENTS[0] = INDENT_STR;
            for (int i = 1; i < MAX_DEPTH; i++) {
               INDENTS[i] = INDENTS[i-1] + INDENT_STR;
            System.out.println("Enter the directory you want to search.");
            System.out.println("Do not use quotations marks. Use \\ instead of \"");
            Scanner input = new Scanner(System.in);
            File dir = new File(input.nextLine());
            //===============================================
            System.out.println("Enter the file name and its extension");
            System.out.println("Do not use quotations marks.");
            File filename = new File(input.nextLine());
            if (dir != null && dir.isDirectory()) {
                listRecursively(dir, 0);
                //====================
                if(dir.getName().equals(filename.getName())){
                     done = true;
                     found = filename.getPath();
                //=============
            } else {
                System.out.println("Not a directory: " + dir);
            //======
            if(done == true){
                   System.out.println("The file's path is: "  + found);
              //=====
        //========================================================== listRecursively
        public static void listRecursively(File fdir, int depth)
            System.out.println(INDENTS[depth] + fdir.getName());  // Print name.
            if (fdir.isDirectory() && depth < MAX_DEPTH) {
                for (File f : fdir.listFiles()) {  // Go over each file/subdirectory.
                    listRecursively(f, depth+1);
    {code}
    Edited by: DJFONSO on Nov 10, 2007 10:12 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Custom File Naming

    Is there any way to save a custom file naming routine into a preset?

    Well, for me at least, this is the workflow I would like to see built in:
    1. Load card or point to folder
    2. Images are placed in a sorting place (I use the term "shoot")
    3. Select keepers from the shoot (note a shoot could have hundreds of images)
    4. Right click on a library folder to FILE images to
    5. LR knows the naming convention used in that folder and prompts for confirm/edit
    6. Images are FILED to the library folder via a move and rename using the above info
    This is what I have today and it works well and is fast. The primary benefit I have in LR as-is is the post filing processing. I will say that the keywording is not as robust or fast as I would like.

  • Custom File Renaming Template Keeps Changing

    I'm having issues when creating a custom file naming template in Tiger with LR 1.3.1.
    When importing files, I created a custom template to rename the files with YYMMDD_{original file suffix}{Master}.tif to get this: 071217_12056Master.tif. The first import goes fine. But when I import another batch of files and choose the template all I get is 071217_Master.tif.
    I tried creating the template by hitting F2 to rename the photo and get the same results. The really odd thing is that some of the other templates have their characteristics jumbled around so that what I thought was the "orig file-name" template might actually produce something like 071217_.tif.
    The original file suffix suffers the worst in terms of disappearing without cause. This behavior was occurring in the 1.2 ver. as well. I've deleted every single template thru the editor, recreated them again and still get the errors.
    Hopefully someone here can provide some clues?
    Thank you!

    It sounds as though your import preset either isn't working or wasn't setup correctly.
    Using the full screen import panel, make sure Copy or Move is selected and then select your Import Preset....what does the File Renaming panel look like? "Rename Files" should be ticked, Template should read "Custom Settings" (or the specific rename preset if you've saved it) and the sample should show the correct rename format, like so:
    So does yours look like this, or different?

  • Custom File Info panels from PS into LR

    I have a large number of Custom File Info panels created for use within Photoshop that are imperative to our workflow of different departments. These Metadata strings are later read by Extensis Portfolio as our DAM tool of choice.
    I don't see to be able to find where to change this other than making minor tweaks to existing Metadata presets. Any clues hmmm? Ta

    alanterra wrote:
    there is no way to get the data in the original into the derived copy except by doing it by hand
    Better ways:
    1-1 or 1-many:
    (on the file menu: plugin extras) which brings up:
    If you want to do "many to many-others-like-them", you have to use a different plugin, like Relative Antics..
    alanterra wrote:
    If I understand it correctly, "Custom File Info panels" for xmp data should just solve this problem.
    Many of us are hoping Adobe enhances Lr to provide better support for custom metadata - as you've noticed, Lightroom is not one of those "Standard Adobe Applications" referred to in the above link.
    Rob

Maybe you are looking for

  • Restoring edited info in iBooks

    I download all my bank and credit card statements to iBook on my iPad mini. I edit the names of the documents as not all financial institutions provide the date of the document with the download. I went from IOS 7 to  IOS 8.1.1 and all the edited inf

  • Pricing Procedure for diffrent unit of measure for diffrent product

    1) Existing Pricing procedure --> Condition type based on Quantity 2) Existing Product --> Sales Unit & Base Unit of Measurement is in NOS ( Numbers ) 3) New Product ( Belt ) ---> Pricing of product based on weight ex :--> Rubber Belt -->   1 belt =

  • The strange case of k*****

    I think we should stop "feeding the troll". It appears that we're not going anywhere and the exchanges creates an unbelievable amount of noise :-( Thierry

  • Hide Volume als Login Item doesn't work

    Hi folks! When I login into my account on my mac all network volumes appear despite the hide-configuration in login items. Are there any ways to resolve that issue? Thanks... Timi

  • Can you install Plugins on a trial version of PS cc?

    Can you install plugins on a trial version of Photoshop cc?