search for: my_log

Displaying 11 results from an estimated 11 matches for "my_log".

Did you mean: mm_log
2012 Apr 27
5
How to cap table with active record
We want to use SQL/active record for logging but limit the table size so that older messages disappear off of the table Some process has to run periodically to do that. Suppose I want to keep my table size to not much bigger than 50,000,000 rows or so. What is the easiest, most efficient way to delete any extra rows that there may be ? This is an SQL/active record problem I have not encountered
2013 Nov 26
4
how to deal with xml files within Puppet ?
hi there, I have to create a new server.xml which should be build from at least 3 or 4 another xml files. How could to copy and paste with puppet methods ? On a command line under Unix I would do cat 1.xml > my_file.xml ; cat 2.xml >> my_file.xml; cat 3.xml >> my_file.xml. I have to say, I''m pretty new to puppet and simply have no clue how to tackle this task ;=(
2006 Apr 11
2
using log4r and rails
hey everyone. i know somebody else had started a thread on this subject, but since no one seems to be answering that thread i thought i would start one of my one. i''m doing a project for a client and we need some seriously verbose logging. it looks like log4r can do what i need, but i can''t for the life of me figure out how to plug it into rails. everywhere talks about how
2006 Apr 07
3
log4r and rails
Hey there folks. I would really like to use log4r as my default logger in Rails, but I''m having a hard time getting it to work. I''m not even sure I''m plugging it in in the right place. I''m using log4r 1.0.5 and rails 1.1.1. I would love it if someone could either point me to a good tutorial on how to use log4r with rails, or at least point me in the right
2016 May 25
4
centos7 tmpfiles.d deleted outdate files
...I use centos7 and don't want to use tmpwatch as well as crond. I have a question to use `systemd-tmpfiles-clean.service` with my custom configured file in `tmpfiles.d` to delete outdated files periodically in some log dir. I have a `tmpfiles.d` configured file in `/etc/tmpfiles.d` named `my_log.conf` in following contents. ``` #Type Path Mode UID GID Age Arg r /chenqiang 0775 root root 10s r /chenqiang/test_10s r /chenqiang/test_20s ``` If I run `systemd-tmpfiles --remove` with above configure, all files and dir will be deleted if I set 'r' type for the files and dir...
2016 May 26
0
centos7 tmpfiles.d deleted outdate files
...I use centos7 and don't want to use tmpwatch as well as crond. I have a question to use `systemd-tmpfiles-clean.service` with my custom configured file in `tmpfiles.d` to delete outdated files periodically in some log dir. I have a `tmpfiles.d` configured file in `/etc/tmpfiles.d` named `my_log.conf` in following contents. ``` #Type Path Mode UID GID Age Arg r /chenqiang 0775 root root 10s r /chenqiang/test_10s r /chenqiang/test_20s ``` If I run `systemd-tmpfiles --remove` with above configure, all files and dir will be deleted if I set 'r' type for the files and dir...
2016 May 26
0
centos7 tmpfiles.d deleted outdate files
...t to use tmpwatch as well as crond. > > I have a question to use `systemd-tmpfiles-clean.service` with my > custom configured file in `tmpfiles.d` to delete outdated files > periodically in some log dir. > > I have a `tmpfiles.d` configured file in `/etc/tmpfiles.d` named > `my_log.conf` in following contents. > > ``` > #Type Path Mode UID GID Age Arg > r /chenqiang 0775 root root 10s > r /chenqiang/test_10s > r /chenqiang/test_20s > ``` > > If I run `systemd-tmpfiles --remove` with above configure, all files > and dir will be deleted...
2008 Apr 04
0
[ANN} log_buddy 0.0.2 released
...YNOPSIS: Call LogBuddy.init to use log_buddy. It will add two methods to object instance and class level: "d" and "logger". You can use your own logger with Logbuddy by passing it into init''s options hash: LogBuddy.init :default_logger => Logger.new(''my_log.log'') Now you have your logger available from any object, at the instance level and class level: obj = Object.new obj.logger.debug("hi") class MyClass; end MyClass.logger.info("heya") You also have a method called "d" (for "debug")...
2009 Apr 07
3
Logging Asterisk console
Hi all, in witch way can I put in a log file the asterisk console? I have tried with some settings in file logger.conf but the log not contain the same debug that I can see with "asterisk -rvvv". I need it in debugging purpose for tracking some bug. Thanks Enrico. -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type:
2006 May 22
4
use join table in paginate
How come I allways immediately run into difficult stuff when I''m trying some new programming language? Am I blind for the simplicity of Ruby/Rail, which a see must be there? Anyway, don''t try and answer this rhetoric question. I have got another one for you, seemingly difficult. I''m struggling with a n:m relationship (in a database, that is) and its join table.
2012 Sep 17
9
[PATCH] Upgrade vtpmd to berlios version 0.7.4
...tpm_rx_fh=-1; ++ ++#define BUFFER_SIZE 2048 ++ ++ + static volatile int stopflag = 0; + static int is_daemon = 0; + static int opt_debug = 0; +@@ -44,6 +66,9 @@ + static uint32_t tpm_config = 0; + extern const char *tpm_storage_file; + ++static int vtpm_type = VTPM_TYPE_PVM; ++int dmi_id; ++ + void my_log(int priority, const char *fmt, ...) + { + va_list ap, bp; +@@ -156,35 +181,218 @@ + exit(EXIT_SUCCESS); + } + } else { +- /* if no startup mode is given assume save if a configuration +- file is available, clear otherwise */ +- int fh = open(tpm_s...