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

Similar Messages

  • 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

  • Error logging into runtime user

    My coworker recently added a new windows agent that is on a different domain than her Tidal master and is getting the error
    *** Error logging into runtime user    when she tries to run a job through Tidal. 
    She verified that the runtime user has the proper rights on the agent server, she logged onto the agent as the runtime user and ran the script from the job manually and it ran successfully.
    Is there a known problem with using a runtime user that was created in domainA but trying to run a job on an agent server in domainB?
    Thanks

    It turns out that the problem was with the userid the agent service was running under.  She changed the service to run with the Local System credentials and the problem was solved.

  • SSL error logging into Financial Reporting Studio

    We are using Financial Reporting 11.1.2.1, patch 120. We terminate SSL at a load-balancing appliance, therefore, none of the Hyperion services have SSL enabled.
    Users were able to log into Financial Reporting Studio (FRS) using https://servername:port successfully until we installed a new digital certificate in the virtual IP on the load-balancing appliance. Now when the users try to log into FRS, a SSL handshake error is written to the client log file. See below for full error.
    We have restarted all Hyperion services and verified that browser access to the EPM environment is working using https. We also tried uninstalling the FRS client and reinstalling, but get the same error.
    The original digital certificate was not imported on the Hyperion servers or client machines. The new digital certificate has not been imported either.
    Oracle Support said that we need to create a keystore file on each client machine and import the new digital certificate.
    Wondering if anyone else has run into this issue or can explain why we would need to import the new cert on each client, when we never had to import the original cert on the client?
    We also verified that if we revert back to the original cert on the load-balancer, the users can log into FRS.
    Thanks,
    Robin
    FRClientLogging.log:
    [2012-05-15T09:39:19.438-06:00] [EPMFR] [ERROR] [] [oracle.EPMFR.core] [tid: main] [ecid: 0000JTH9owO5EgG6yzFg6G1FgbYb000000,0] [SRC_CLASS: com.hyperion.reporting.registry.FRSystem] [SRC_METHOD: getObjectFromURL] [[
    javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
         at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:174)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1611)
         at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Handshaker.java:187)
         at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Handshaker.java:181)
         at com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1035)
         at com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:124)
         at com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Handshaker.java:516)
         at com.sun.net.ssl.internal.ssl.Handshaker.process_record(Handshaker.java:454)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:884)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1112)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:623)
         at com.sun.net.ssl.internal.ssl.AppOutputStream.write(AppOutputStream.java:59)
         at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65)
         at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:123)
         at org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequestBody(EntityEnclosingMethod.java:506)
         at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:2114)
         at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1096)
         at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398)
         at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
         at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
         at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
         at com.hyperion.reporting.registry.FRSystem.getObjectFromURL(Unknown Source)
         at com.hyperion.reporting.registry.FRSystem.lookupHsServer(Unknown Source)
         at com.hyperion.reporting.javacom.HsServer.getServer(Unknown Source)
         at com.hyperion.reporting.javacom.HsHelper.getServer(Unknown Source)
    Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
         at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:294)
         at sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:200)
         at sun.security.validator.Validator.validate(Validator.java:218)
         at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:126)
         at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:209)
         at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:249)
         at com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1014

    fixed by creating local keystore on each client machine, importing the certificate into the keystore and adding the following registry entry on each client machine:
    -Djavax.net.ssl.trustStore=full path to keystore file.
    registry entry added to HKEY_LOCAL_MACHINE\SOFTWARE\Hyperion Solutions\Hyperion Reports\HReports\JVM
    still no answer from Oracle Support as to why it was necessary to do this for the new certificate when we did not have to do this for the original certificate.

  • Error Logging into Cisco Agent Desktop whilst using Cisco IP Communicator

    Hi there,
    I am having an issue whilst using Cisco Agent Desktop Version 7.0.  If I use a cisco IP Communicator ( softphone) i get following message, "Login failed due to a configuration error. Please ask you system administrator to associate your phone with the RM JTAPI Provider user ID according to the instructions in the admin guide".
    If user logs in to a normal Cisco phone then logs into agent there are no problems.
    Bit of a novice so your help would be appreciated.

    Hi
    In your AppAdmin pages on UCCX, in the Unified CM Configuration screen, there is an 'RM' user defined.
    This will be a user in CCMAdmin 'Application Users', which has all your CCX phones associated to it. UCCX uses this to CTI control the handsets... you need to associate the CIPC phone to that user.
    Regards
    Aaron
    Please rate helpful posts...

  • Cannot Register Phone - Error Logging into the Windows Phone Dev Center

    I cannot register my phone using the Windows Phone Developer Registration tool running in Windows 8.1. The phone is a Samsung Ativ S.
    I've confirmed that I can log into dev.windowsphone.com on the machine. I've tried setting up the credentials with Credentials Manager (using dev.windowsphone.com as the url). I've confirmed that IpOverUsbSvc is running. I've confirmed that the phone is
    visible in the file manager (and even browsed files to make sure). I've unlocked the phone's lock screen. I've gone the Accounts page in the dev centre to confirm that my account is active.
    It seems the problem isn't with the credentials I use because, if I purposely enter incorrect credentials, I don't even get past the Microsoft Account Sign In window - the error message I am getting happens after that sign-in window right in the Windows
    Phone Developer Registration window.

    This thread is a little old, but not too old.  My Nokia Lumia 920 that used to be registered isn't connecting since the 8.1 update (latest update today).  I've tried wiping out my list of phones in my account on the dashboard, that didn't make
    a difference.  IpOverUsbSvc is running, has been re-started alone, and has been re-started through a power-cycle.  I can browse files on my phone from my Windows 8.1 laptop.  When I disconnect / reconnect my the USB cable to my phone, the Device
    Phone Registration screen shows an automatic retry.  So far in all cases, I'm getting:
    Some additional information based on more searches and some thinking:
    Windows Media Player is installed and can access the Lumia
    I can't see any event log messages associated with the failure to connect
    Although it seems associated with Windows Phone 8.1, I can't say for sure that's true, since I hadn't tried connecting while it was running Windows Phone 8.0 in awhile.

  • Error Logging Into GreatPlains

    Trying to log into GP on a client computer and get the following error:
    "This login failed. Attempt to log in again or contact your system administrator"
    We can log into the sa account just fine, but any other user we try fails.  Also, we can log into this account on another client running GP just fine as well.  I tested the DSN connection and it tests fine.
    Thanks in advance.

    Hello,
    Could you examine the SQL Server error log and see if you can get a more detailed dscription of the error?
    http://msdn.microsoft.com/en-us/library/ms187109.aspx
    The error state will provide you the reason behind the login failed.
    http://blogs.msdn.com/b/sql_protocols/archive/2006/02/21/536201.aspx
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • Error logging into business rules

    Hi,
    I've installed EPM 11.1.2.1 in my PC and all the services seems to be up and running but when i'm trying to access business rules from eas console it's showing me the below error -
    Error logging in to Business Rules. The repository has not been configured or you are not authorized to use Business Rules.
    Detail:Error while sending command to HBR Server running within the EAS server.
    Detail:com.hyperion.hbr.excp.DatabaseException.<init>(java.lang.String, [Ljava.lang.Object;, com.hyperion.hbr.excp.ExceptionSeverity, java.lang.Throwable)
    ** I'm using admin login**
    Any help in this will be highly appreciated.
    Thanks
    Agni                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Hi,
    I've seen in sum posts that it's advised to assign interactive user role to the user in this kinda issues. After doing that I'm getting a new error -
    Detail:Error creating DBRules. Cannot continue.
    Detail:Error loading objects from data source: java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist
    Please help...
    Thanks
    Agni

  • BlackBerry Curve 8520 - Error logging into App World and with Identity update

    Hi all I wonder if any of you can help me.  I tried several weeks back to do an automatic update for BB App World to upgrade to version 3.  Once I tried, i've never been able to log into App World since.  Here's what it tells me.
    A BlackBerry Identity update is needed.  Would you like to install in now?  Yes/No
    When I click YES..... it says BlackBerry Identity installation failed.  Please try again later.  (80003)
    Can anyone please advise what could be the problem.  Please.  My e-mail address is [email protected] and my pin is 27D44D12
    Thanks a mil.
    Trevor.

    Do you have a WiFi connection available?  If so, turn off your celluar radio and try doing the update with WiFi only.
    Please click the Thumbs Up icon if this comment has helped you!
    If your issue is resolved, please click the solution button on the resolution!
    Every BlackBerry should have BlackBerry Protect, get it now! | Follow me on Twitter | Bring Back BBM Music!

  • TS3694 unknown error logging into itunes account on ipad

    hi
    i am having problems logging into my itunes account from my iPad - i keep getting the message: unknown error

    Go to keychain access. Go to preferences. turn Online Certificate Status Protocol and Certificate Revocation List both to off.
    You should now be able to log into iTunes.
    The repairing of Keychain is a wasted step and has nothing to do with this issue. This is another issue.

  • Error logging into OIM Console as xelsysadm

    We have installed IDM11g (11.1.1.3) with WLS 10.3.3 several times successfully on RHEl5.6. This last time we ran our installation, everything "appeared" to go normally until we tried to access the OIM console as xelsysadm.
    Usually this brings us to the challenge question screen and we simply enter whatever values and move on never seeing this screen again (and not caring to).
    This time when entering the screen for the first time, after entering the values and pressing Submit... a message popped up:
    "Password successfully changed but challenge question registration failed"
    There if no other recourse than to press "OK"... we are left in the challenge question screen and have to close the brower or sign out to exit. We never attempted to change the password and have never had an issue with accessing this screen.
    Can we modify an xml to not have to enter the challenge questions? Did something not install? We found no errors in the any of the server log files indicating an issue with the user or the screen.

    Thank you for your response... we did disable the challenge questions in the OIM PTY table -- and a few other attributes -- and were able to at least get into the console. Even though we are able to access the console now, that does not fix the "password" issue. When we execute LDAPConfigPostSetup.sh, we have gotten 2 separate errors -- we received these during separate executions of LDAPConfigPostSetup.sh.
    1) Invalid Credential -- we think this is pointing at the xelsysadm account
    2) Invalid ScheduleTask Defiinition
    If we re-enable the challenge questions the issue reappears... but we are at least able to access the console. This, however, does not completely give a warm-fuzzy thinking that there is an issue we cannot find or truly resolve. Since this was a new install, Oracle's fix was to reinstall everything. That sounds easy -- and if our customer would allow it without having to jump through 2 months of hoops to get there -- but it is not.
    At this point, unless we can determine the underlying issue -- which is not a password issue but errors seem to manifest as that -- and since we at this point do not provision users within our product (our sso participants maintain their own users)... the OIM console will not be a priority. On our next install (few months) we will reinstall eveyrthing and this becomes moot.
    Thanks for your input... we still hope to determine the underlying issue, but have a "workaround" or sorts....

  • Custom Error Logging

    Hi All,
    I have a requirement to store the error message code returned from the oracle standard API'S.
    for example if the standard oracle error throws WSH_DEL_ASSIGNED_ERROR error with the token name DEL_NAME
    and token value wsh_new_deliveries_pvt.get_name(p_delivery_info.delivery_id).
    I should have a way to store the message WSH_DEL_ASSIGNED_ERROR,DEL_NAME and wsh_new_deliveries_pvt.get_name(p_delivery_info.delivery_id) into my custom table. So at a later point of time the user will run a report to see all the error message.
    Can any one throw some light on how to acheive this?
    Regards,
    Nagesh Manda.
    Edited by: Nagesh Manda on Dec 6, 2008 9:35 PM

    Nagesh
    Can you tell us of which transaction you want to do this? You gave an example of shipping, but please specify the transaction, as there may be ways in some places, but we may not be able to achieve this requirement for all the transactions.
    Thanks
    Nagamohan

  • Iphone getting a certificate error logging into Lync 2013

    Hello,
    I am having a strange issue with Lync Mobility. Android seems to work just fine, but my IPhone clients are throwing certificate errors. Everything is showing up properly in the Lync Connectivity Analyzer. The LyncDiscover URL seems to work just fine.Any
    Anyone run into issues specifically with certificates and IPhone?

    Check the following KB about Lync Mobile users cannot sign in after they update to client version 5.4:
    http://support.microsoft.com/kb/2965499/en-us
    Lisa Zheng
    TechNet Community Support

  • Errors logging into the iTunes store

    Ok so when I try to sign in I receive the message "We could not complete your iTunes store request. A secure network connection could not be established. Check that your computers date and time are correct and try again."
    I click on Account in quick links and receive the (-1202) error.
    This has been going on for weeks. Been reading through the forums and tried many different suggestions. Proxy is not checked. Tried the suggestion that involves making a copy of host in system32 and erasing everything in it. Tried downgrading to iTunes 8.2 with the same problems. upgraded again to 9.0. I checked and rechecked my computers date and time several times and it is correct. I use a wireless router which is on a secure password protected network.
    The list goes on and on. No luck with anything I have tried. I can't even remember everything I have tried since I have been trying for over a month to fix this.
    If anyone knows what the problem is please please please help. This all started when I downloaded 9.0. The other computer on my network has no problems connecting to the store. Thanks.
    APPLE YOU NEED TO GET ON THIS PROBLEM AND MAKE THE FIX!!!!!

    The Fix (& It's NOT Your Firewall)
    A. Symptoms
    When you try to connect to the iTunes Store you may receive the alert message "We could not complete your iTunes Store request. An unknown error occured (-9808). There was an error in the iTunes Store. Please try again later."
    B. Resolution
    Check your computer's date, time, and time zone. Set the correct date, time, and time zone if needed. If your computer's date, time, and time zone are all correct and you still see this alert message, this issue can be resolved by modifying certain settings in the Internet Options control panel:
    1) Go to the Start menu and choose Control Panel.
    2) Select Internet Options.
    Note: If you are using Windows Vista you may need to select Classic View on the left before you can see Internet Options.
    Note: If you are using WIndows 7 you may need to change "View by" to either Large icons or Small icons before you can see Internet Options.
    3) Click the Advanced tab.
    4) In the Settings box, scroll down to the Security section.
    5) Deselect the option to "Check for server certificate revocation (requires restart)."
    6) Select the options for "SSL 3.0" and "TLS 1.0."
    7) Apply the changes and restart your computer.
    Disclaimers
    Important: Information about products not manufactured by Apple is provided for information purposes only and does not constitute Apple’s recommendation or endorsement. Please contact the vendor for additional information.
    Article source: http://support.apple.com/kb/TS2753

  • Error logging into BB account

    I am not able to log on to my Blackberry ID account on my 9810 Torch. The message displayed is Unable to login to your Blackberry ID account.  It has been sometime since I have been able to log on and I recently updated my login information but it is still not excepting my new ID and password.  
    I have tried pulling hte battery and SIM card but nothing changed.  I am not able to update my user BB ID directly from the options cause it wants me to login.    

    Hi and Welcome to the Community!
    Please see this "sticky" post for helpful information concerning your BBID situation:
    http://supportforums.blackberry.com/t5/BlackBerry-World/How-to-regain-access-to-your-BBID/td-p/25467...
    Hopefully, this information will be of use to you.
    Cheers, and Good Luck!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

Maybe you are looking for

  • Deleted com.apple.windowserver restore

    I deleted the plist files that people have said to delete to fix my HDMI connection to the TV (I won a Macbook Pro Retina). The problem with this is that when I was going to reboot my computer, it wouldn't start again. It is stuck on loading screen a

  • Excluding Value Range - ABAP Routine at Infopakage Selection

    Hi, In Production the volume of data is very high, I m splitting the data based on Material No. 000000000000 - 4ZZZZZZZZZ, 500000000000 - 8ZZZZZZZZZ, 900000000000 - FFFFFFFFFFFFF, and the remaining Material No.s. I created seperate InfoPaks for the m

  • How to display default file icon in Swing listing?

    Hi All, I am developing an application where I need to display all the files under a specific folder. But I need to list the files along with their default icon. Also, I need to open that file on clicking (or double clicking) on that file icon. I am

  • Lookup from table, which has 1:N relation with  Data package

    Hi, I have to look up for Sales Office, Sales district from 0Cust_Sales Masterdata, while loading data to 0FIAR_C03 (from 0FI_AR_4). 0FI_AR_4 has fields - 0Customer   10000 While 0CUST_SALES has Customer  Division  DistrCh. SalesOff   SalesDistr 1000

  • Can't close the finder application

    I had to urn off my computer, could not break the freeze any other way. However when I turn it back on it still is not working.