Re: Dynamic logging
Greg,
The LogMgr.modifyFlags method only changes the actual logging filters - as
you found out, you can't specify a file. It also affects ALL current log
files. You can't specify output to a particular file if a set of files is
specified in FORTE_LOGGER_SETUP.
There are a couple of approaches you can take. The easiest is to specify
more than one file in FORTE_LOGGER_SETUP, with a different set of filters
for each one. For example, you might use "mem.txt(trc:os:1:1)
perf.txt(trc:in:52:1) mystuff.txt(trc:user1:1)" Then, when you turn
various flags on or off, the associated files will be accordingly affected.
The other solution, obviously, is to write your own logging service. I
have seen some projects that have taken this approach, and it has worked
fairly well. Except for very specialized needs, though, it's probably
easier to use the first method.
Don
At 10:22 AM 1/8/98 -0400, [email protected] wrote:
>
I would like to be able to dynamically set up multiple files and be able to
redirect the LogMgr's output to any one of them within the TOOL code
(instead of stdout). I know that this can be done non-dynamically by
modifying the Forte environment variable 'FORTE_LOGGER_SETUP' but I have
never seen it done dynamically. I tried to do this using the
'LogMgr.ModifyFlags' method with a file name but this caused a syntax error
within the string at run-time. Has anyone ever done this??
I thank you in advance for responding.
-Greg Pettengill
CSC Consulting
============================================
Don Nelson
Regional Consulting Manager - Rocky Mountain Region
Forte Software, Inc.
Denver, CO
Phone: 303-265-7709
Corporate voice mail: 510-986-3810
aka: [email protected]
============================================
"We tigers prefer to inflict excitement on others." - Hobbes
It sounds like you are using R3. If so, then you need to manually flush
the log files by OS feels the need to do so. Try this and see if it works!
Dustin Breese
PerSe Technologies
You Wrote:
From: [email protected]
Date: Wed, 10 Dec 1997 11:23:58 -0500
Subject: Forte Logging
We are setting up our application to utilize Forte's logging facility for
performance measurements. We have added logging
(logMgr.Put()...logMgr.PutLine() use) to one TOOL class which is used to
create a service object. This service object is configured to be USER
VISIBLE and is placed into a load-balanced partition. When these USER
VISIBLE service objects use the LogMgr to log information, it doesn't
appear that all of the log entries are being placed in the required output
file (specified in FORTE_LOGGER_SETUP). Does anybody have some hints on
why? I've called Forte Support about this issue, but haven't been called
back yet.
Thank you!
Similar Messages
-
Hi,
I have this SCCM 2012 standard CM task sequence which writes its logs at the end of the task sequence to a folder. When succesfull to\\server\share\success\computername, when failed to \\server\share\failed\computername
It then also sends a mail with location of logfiles.
Please advise on dynamic logging within sccm 2012 R2: how do I configure this? In ini-file, I set the SLShareDynamicLogging to a servershare?
J.
Jan HoedtIt would be customsettings.ini in MDT and this is not available in native CM12 task sequences. Integrating MDT in CM12 would add that. You can set task sequence variables in CM12 though using computer variables, collection variables, task sequence steps
or scripts during the task sequence.
Torsten Meringer | http://www.mssccmfaq.de -
Creating a dynamic log in page with php
I'm fairly new to web development and I'm trying to create a page that clients can go to, log in, and review drafts of the video work we produce for them.
I've developed a php page that works. The client can enter their user name and password and log in to a page. I've got a mysql databse and I've used the log in user behaviour that comes with dreamweaver.
The problem I have is that I'm not sure how to make the page redirect the client to the appropriate page. Right now the client can log in but I'm only able to to get the site to redirect them to the same page. I'd like to be able for each client to log in and only see their own videos.
Is their another behaviour available for php sites that would allow me to accomplish this? I downloaded a coldfusion behaviour that allow for dymanic log-in but I couldn't get my testing server to acknowledge that I have coldfusion installed on my computer. Ideally I'd like a behaviour that works with my php page.
ThanksDepending on the situation, the best solution is often to redirect everyone to the same page that will be customized with their specific dynamic data. So you use the user id to retrieve the user's data and display it on that page.
-
Iam using JUL in my code. How to adjust the logging configuration dynamically to send loggers to different output files based on the requirement?
You mean Java Logging?
(JUL for java.util.logging package ?)
I guess you can remove/add Logger's handlers, check API:
Logger, FileHandler, ...
- Java Logging Overview - -
Dynamic Logging level control in a grid/rac system
How is the logging level in a grid/rac configured Weblogic system dynamically configured? I would like to control the logging level in grid/rac configured system dymaically via a GUI. What are the steps to controlling the level, or please direct to the appropriate documention.
You would do it the same way you would with a tank of any shape. The only difference is that you are dealing with the volume of a sphere rather than a cylinder or rectangle. Hence the amount of fluid required to raise the level by X is non-linear in that it varies with how much stuff is already in the tank - which is a function of the volume of a sphere (actually the volume of a partial sphere).
Mike...
Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion
"... after all, He's not a tame lion..."
Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps -
Dynamically defined output log file in log4j
I am trying to generate an output log file dynamically using log4j. I have standard configuration XML file for log4j where I have an appender configuired. In my java code I am trying to add appender to the logger and then change an output file:
<code>
Logger logger = Logger.getLogger(ClassFSTest.class);
Appender rfa =logger.getAppender("rolling");
rfa.setFile(myFileName);
rfa.activateOprions();
</code>
However getAppender method returns NULL, but at the same time I have an Appender named "rolling" in my confuiguration. And if I use standard output mechanism like "logger.info()" the message is being written into the defined file.
thanks in advance.Hope the following link will address the solution for your problem:
http://cognitivecache.blogspot.com/2008/08/log4j-writing-to-dynamic-log-file-for.html -
Dynamically reading & writing in a file
Hi all,
i want to find a particular string from a weblogic server log [*.log] file and write into a separate txt [output.txt] file.
important : The weblogic server log file is dynamic one.
The log contains somestring and xml files, those string are writen by logger tool. only i want to retrieve logger tool msgs.
for eg.
####<Sep 21, 2006 10:04:39 AM GMT+05:30> <Debug> <CLA_JMS> <dscp06614> <cgServer> <ExecuteThread: '22' for queue: 'weblogic.kernel.Default'>
<ServiceHeader>
<HI_PCK_SYS>ORM</HI_PCK_SYS>
<HI_PCK_USR>ALC</HI_PCK_USR> <HI_WORKSTRING_ORIGINATOR>SVI</HI_WORKSTRING_ORIGINATOR>
<HI_WORKSTRING_MSG_ID>hostname-99ba23.10dcea555e2.-7ff8</HI_WORKSTRING_MSG_ID>
</ServiceHeader>
####<Sep 21, 2006 10:04:39 AM GMT+05:30> <Debug> <CLA_JMS> <dscp06614> <cgServer> <ExecuteThread: '22' for queue: 'weblogic.kernel.Default'> <<anonymous>> <BEA1-02E4CB44E4DA812720BD> <000000>
<con:OrderID>1033987</con:OrderID>
<StateCode>SUCCESS</StateCode>
from the above content i want to fetch following elements & write into a
separate file as output.txt
output.txt
USER Order_ID SYS ORIGINATOR MSG_ID statecode
ALC 1033987 ORM SVI 111 success
ALC 1033989 ORM SVI 112 failure
Anyone have idea how to get the string from the dynamic log file.
we can achieve for static file by using :
BufferedReader inputStream = new BufferedReader(new FileReader("cgServer.log"));
PrintWriter outputStream = new PrintWriter(new FileWriter("log_output.txt"));
But how do read the data from a dynamic file and put into static file.
your suggestions are most welcome.
Message was edited by: Paulraj_mm
PaulrajDanielHi there, I am currently wanting to do the same thing. I would like to know what you ended up doing. Our log files get quite large (we log 8gigs a day), and the weblogic log files are 512MB each. Would scripting be better than java for this task? Our log files also run on multiple mservers on multiple servers, so searching for XML messages is on multiple servers, on multiple mservers is quite a daunting task to do manually!
Thanks -
I am fairly new to LabVIEW and I am trying to make a GUI that uses
events to pass messages between three separate event loops, GUI,
Messaging and Logging. GUI controls the state of the other two event
loops by generating control events and using semaphores. While the
messaging semaphore is released by the GUI, Messaging generates
messages and raises them as events. Some message events are handled by
the GUI event loop and others by the Logging event loop. Logging, once
it receives a 'logging ON' control event dynamically registers for
certain message events and logs the message events it handles to file.
When Logging receives a 'logging OFF' control event, it dynamically
unregisters the message events. The logging control events are
registered for the life of the Logging event loop.
I have created a cut-down version of my GUI that exhibits the same
problem. The problem is that after I have turned Logging on and off
once, it no longer responds to logging control events from the GUI.
Even though the GUI is still generating the events. I have looked at
the dynamic logging example in LabVIEW and thought I did the same sort
of thing but I just can't get it to work that way. The only way I got
it working was by creating a clean event registration with all events
each time I want to change the event registration. This is how I have
done it in the example file and it works. But I don't want to use this
method, I don't want to have to re-register the control events each
time I unregister/register message events.
If anyone knows what I'm doing wrong please edit the example vis and post them back.
Notes for the example:
Files are LabVIEW 7.1.1
Just open the front panels for all the vis before running the GUI vi.
The Display vi just does the same thing as the logging vi.
Run the GUI vi and turn on Messaging then turn Logging on and off a few times.
The example works, but if you wire the event registration refnum
input when doing dynamic event registration, Logging will only turn on
and off once, then no longer respond to log control events... what's
going on?I can't tell you how to solve you problems - without code this is always quite tricky.
But in case you want to log messages to a log file, have a look at this thread
http://forums.ni.com/ni/board/message?board.id=170&message.id=172117&view=by_date_ascending&page=1
where I posted a logging-library.
Maybe it is a useful help for you.
Thomas
Using LV8.0
Don't be afraid to rate a good answer... -
Scroll lock on the log window...
Can the Jdev team make it so when the log window is not at the bottom it should not reset the scroll. So something like this...
if(scroll.y != scroll.height) { /*KEEP SCROLL POSITION!*/ }
I print a lot of debug code I guess in the log when testing my webapps, and I'll scroll up to review some debug. But there are some ajax updaters I have built into the web interface that pings back to the server causing more debug code to generate... and then jdev resets the scroll from where I'm at to the bottom.Besides the dynamic log output, you can read the previously saved log contents when you open the text log file shown at the jdev log output.
The path to the log file is printed when the weblogic server starts:
<17 Νοε 2010 10:23:33 μμ EET> <Notice> <LoggingService> <BEA-320400> <The log file C:\Users\Nick\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\servers\DefaultServer\logs\DefaultDomain.log will be rotated. Reopen the log file if tailing has stopped. This can happen on some platforms like Windows.>
<17 Νοε 2010 10:23:33 μμ EET> <Notice> <LoggingService> <BEA-320401> <The log file has been rotated to C:\Users\Nick\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\servers\DefaultServer\logs\DefaultDomain.log00030. Log messages will continue to be logged in C:\Users\Nick\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\servers\DefaultServer\logs\DefaultDomain.log.>
You could also choose to save the log output to a file you define, by clicking on preferences>environment>log to select save logs to a file and define the path as you wish.
NA
http://nickaiva.blogspot.com -
Logging procedure parameters---
Hi All,
I wonder if there is a way to dynamically log the values of parameters passed to a procedure, function or package method.
I mean some thing like..
procedure my_proc(in_p1 in varchar2, in_p2 in number) is
Begin
Log_Params();
End;ThanksPROCEDURE output_table(string1 IN VARCHAR, string2 IN VARCHAR, tab_name IN VARCHAR)
IS
BEGIN
EXECUTE IMMEDIATE 'INSERT INTO :1 SELECT :2, :3 FROM DUAL' USING tab_name, string1, string2;
END output_table;
is this "dynamic" enough? -
Alerting or logging from AnyConnect NAM
We are planning to use Cisco AnyConnect Network Access Manager as a 802.1x supplicant for our wired network as we ran into issues with Microsoft
native supplicant. There are certain advantages in using inbuilt supplicant on Windows as one can get desired information from event log about the dot1x events and use them to alert in case of failures. I however don't see a similar logging available in Cisco AnyConnect NAM. We can of course use DART bundle, but we would like to have a detailed dynamic logs from the client to build automation to alert NOC on any dot1x failure in the network.
Thanks,
VijayYou should use "live authentication" logs from ISE. You can also configure to switch to send the switch logs to ISE, that way when you click the details of ISE "live authentication" you will see in the same screen both the ISE logs and the switch logs.
If you want alerts, you can go to "Operations > Alarms > Rules" and set alarms. You can configure ISE to send the alarms by email or by using syslog.
Please rate if this helps -
OSD SCCM 2012 R2: MDT integrated task sequence central logging not working
Hi,
Please advise on making dynamic logging work for SCCM 2012 R2 MDT integrated tasks sequence.
This is what I specified in customsettings.ini
[Settings]
Priority=Default
Properties=MyCustomProperty
[Default]
OSInstall=Y
SkipCapture=YES
SkipAdminPassword=NO
SkipProductKey=YES
; Copy Logs if en error occurs or when deployment is successfully completed
SLSHARE=\\sccmserver\OSD\Logs\MDT
; Enable Dynamig Logging
SLSHAREDynamicLogging=\\\sccmserver\OSD\Logs\MDTDynLogs\%OSDComputername%
UserID=administrator
UserDomain=ourdomain
UserPassword=ourpassword
Jan HoedtI keep on getting access denied though when I connect in a dosprompt with the credentials I can make a connection.
Mapping server share: \\ourdomain.com\share ZTIValidate 4/03/2014 0:08:14 0 (0x0000)
<Message containing password has been suppressed> ZTIValidate 4/03/2014 0:08:14 0 (0x0000)
Access is denied.
ZTIValidate 4/03/2014 0:08:14 0 (0x0000)
Unable to connect to \\ourdomain.com\share. Sleeping for 5 seconds. ZTIValidate 4/03/2014 0:08:14 0 (0x0000)
<Message containing password has been suppressed> ZTIValidate 4/03/2014 0:08:19 0 (0x0000)
Access is denied.
ZTIValidate 4/03/2014 0:08:19 0 (0x0000)
Unable to connect to \\ourdomain.com\share. Sleeping for 10 seconds. ZTIValidate 4/03/2014 0:08:19 0 (0x0000)
<Message containing password has been suppressed> ZTIValidate 4/03/2014 0:08:29 0 (0x0000)
Access is denied.
ZTIValidate 4/03/2014 0:08:29 0 (0x0000)
Unable to connect to \\ourdomain.com\share. Sleeping for 15 seconds. ZTIValidate 4/03/2014 0:08:29 0 (0x0000)
<Message containing password has been suppressed> ZTIValidate 4/03/2014 0:08:44 0 (0x0000)
Access is denied.
ZTIValidate 4/03/2014 0:08:44 0 (0x0000)
Unable to connect to \\ourdomain.com\share. Sleeping for 20 seconds. ZTIValidate 4/03/2014 0:08:44 0 (0x0000)
<Message containing password has been suppressed> ZTIValidate 4/03/2014 0:09:04 0 (0x0000)
Access is denied.
ZTIValidate 4/03/2014 0:09:05 0 (0x0000)
Unable to connect to \\ourdomain.com\share. Sleeping for 25 seconds. ZTIValidate 4/03/2014 0:09:05 0 (0x0000)
ERROR - Unable to map a network drive to \\ourdomain.com\share. ZTIValidate 4/03/2014 0:09:30 0 (0x0000)
An invalid SLShareDynamicLogging value of \\ourdomain.com\share\PackageSources\OSD\Logs\MDT-DynLogs\computername was specified. ZTIValidate 4/03/2014 0:09:30 0 (0x0000)
Jan Hoedt -
Request the information about Sun Web server
Hi,
We are developing an embedded system. We need install a web server in our system. We got some information about Sun web server, but it is not enough for us to decide which web server we should use. Would you please give me some detail information of Sun web server?
1.Firstly, we will use the web server in an embedded system. Can Sun web server run in the embedded system, such as VxWroks, Embed Linux?
2.Secondly, we will use chroot jail to enhance the security. Can Sun web server support chroot jail?
3.We can pay money for the service. But would you provide the service to customize the web server according to our necessary and maintain the web server? What's the price?
4.Can you give me a detail features list of Sun web server? Or please check the following feature list. Thank you very much.
Feature List:(For native support feature, input (Y)es; Support via third-party product, input (3)rd; Not support, input (N)o).
Part I. Core Technology
()HTTP/1.1  
()KeepAlives 
()Pipelining 
()Templated web site
()reconfiguration without restart
()On-demand web site deployment
()High scalability process model
()Linear SMP scalability
()Configurable log format
()Customisable error pages
()Dynamic log rotation
()Bandwidth throttling
()Basic Server-Parsed HTML (SSI)
()Dynamically-generated SSI
()Automated self-diagnostics
()Multiple logs 
()Virtual servers
()embedded in other applications
()extensible
()modularity
()J2EE 1.4 support
()IPv6 support 
Part II. Security
()SSL v2 and v3
()SSL(hardware)
()SSL certificate management
()Clustered SSL certificate deployment
()Antivirus
()ActiveDirectory authentication
()Antispam
()Built-in firewall
()LDAP authentication
()Anti-Denial-of-Service protection
()HTTP request filtering
()Malformed HTTP header protection
()Integrated attack monitoring and logging
()Hardware crypto support
()IP address authentication
()DNS name authentication
()User-based authentication
()Referrer-based authentication
()Basic Authentication
()Other/system authentication
 
Part III. Management
()GUI Setup
()GUI configurate
()Web-based user interface
()remote management
()WebDAV support
()Clustered web site management
()Group-based web site configuration
()Integrated licence management
()Configuration wizards
()Scriptable (command-line) configuration tools
()Real-time web-based statistics
()SNMP monitoring
()Delegated user management (htaccess)
()Scalable subserver support
 
Part IV. Application Support
()NSAPI
()ISAPI filters
()ISAPI extensions
()FastCGI
()CGI
()Generic FastCGI/CGI handler
()Secure CGI sandboxing
()Limit CGIs by CPU or memory use
()LDAP
()XML support
()SOAP
()Request rewriting
()Own API
()Own scripting/batch language
()WAR file support
()Content filters
()HTTP (Gzip) Compression
()Perl
()Servlet
()JSP
()ASP/ESP
()Secure setuid PHP
()PHP
Part V. Support
()commercial support
()MailList
()Forum
()Free telephone
()24x7 support
()GSA scheduled
()FAQ
()Tutorial
()Document
()Source code
Thank you very much!Web Server is not currently supported under VxWorks or Embedded Linux. There's information on the supported platforms on the Web Server page at http://www.sun.com/webserver
-
More than one connection to DB
Hello there,
I need to manage more than one connection to DB at the same time.
Each one of my pages needs to refrence to another DB Schema.
I'm working with JDEV 10.1.3 based on ADF,JSP.
Thanks.Or are you saying you want to dynamically log off and log on to different schemas/database connections?
Regards
Grant -
OSD: MDT integrated TS: set folder datetime
Hi,
I made dynamic logging on SCCM 2012 integrated MDT TS work fine (see
here for post related).
However, I'd like to have a subfolder of the computername. So for example \\sccmserver\log\mdt\machine123\datetimehour\logs
How can I achieve this?
Please advise
J.
Jan HoedtModify the customsetting.ini like SLSHAREDynamicLogging=\\\sccmserver\log\mdt\%OSDComputername%\datetimehour\logs.
Juke Chou
TechNet Community Support
Maybe you are looking for
-
I really just want to watch Frozen and it wont download. The option to download it won't even show up anymore. I'm desperate for help
-
CAN'T JUMP TO LATEST VERSION OF FIREFOX FROM THUNDERBIRD.
WHEN I INSTALLED THE LATEST VERSION OF FIREFOX LAST WEEK, I LOST THE FUNCTION OF BEING ABLE TO JUMP TO FIREFOX FROM THUNDERBIRD WHEN THERE IS A WEB PAGE LINK INSERTED IN AN EMAIL. I TRUST THAT THAT PROBLEM WILL BE FIXED SOON. I AM RUNNING WINDOWS 7 P
-
Charles Adu Darko nori pridėti jus į „Skype“ FROM THE OFFICE OF: DJABANOR & CO. LAW CHAMBER, HOUSE NO. 505/4 KWAME NKRUMAH AVENUE NEAR ROXY CINEMA, ADABRAKA ACCRA GHANA. [e-mail removed for privacy and security] Dear Trumpickas, I am very sorry for t
-
10.6 will not play entire movie or tv show
Wintel Box has the movies - running iTunes 10.6 3 AppleTVs can not play an entire movie ( hosted on either a MacBook Pro 10.7 running iTunes 10.6 nor a Windows 7 Desktop running 10.6 ) Either Home Sharing back to either computer running 10.6 will pla
-
I generated the web service proxy for a BPM process with the callback option. Then I deployed the callback web service in to weblogic 10.3. while invoking the client proxy I am giving the callback url as shown GCTLab04ProcessPortType gCTLab04ProcessP