Blog
Developers
Careers
Support
Contact
Gossamer Threads
Solutions
Results
About
Mailing Lists
Resource Centre
Forum
Tools
Home
Who's Online
Tags
Favourites
Login
Forum Search
(
Advanced Search
)
This forum
This category
All forums
for
Home
:
Products
:
DBMan SQL
:
Discussion
:
log files
Previous Thread
Next Thread
Print Thread
View Threaded
Sep 19, 2003, 12:34 AM
timbo
User
(98 posts)
Sep 19, 2003, 12:34 AM
Post #1 of 6
Views: 3831
Shortcut
log files
I see mention in the code of logging. Where are the log files please?! Anything I need to do to turn logging on?
Tim Ault
Oxford UK
Sep 19, 2003, 5:35 AM
jai
User
(417 posts)
Sep 19, 2003, 5:35 AM
Post #2 of 6
Views: 3717
Shortcut
Re: [timbo] log files
In reply to
In your DBManSQL Admin, select the table name and setup from the dropdown menu.
If you write a table name in the Log table field, it will auto create a table that logs the following -
Time
Action
User
IP
Table Name
You can have a seperate log table for each of your tables or you can share the same one for all your tables.
That's all you need to do.
Simon.
Nov 14, 2003, 9:11 AM
timbo
User
(98 posts)
Nov 14, 2003, 9:11 AM
Post #3 of 6
Views: 3647
Shortcut
Re: [jai] log files
In reply to
I've set up a log table.
The table has been created in the mysql database.
I've just added a record, and there's nothing in the log table.
I must be missing something obvious. Can anyone help please?
Tim Ault
Oxford UK
Nov 14, 2003, 10:43 AM
604
Staff
/ Moderator
(733 posts)
Nov 14, 2003, 10:43 AM
Post #4 of 6
Views: 3645
Shortcut
Re: [timbo] log files
In reply to
Double check the 'Log table' property at Admin- Tables- Setup. Make sure it is set.
TheStone.
B.
Nov 14, 2003, 10:48 AM
timbo
User
(98 posts)
Nov 14, 2003, 10:48 AM
Post #5 of 6
Views: 3638
Shortcut
Re: [TheStone] log files
In reply to
Actually logging is working for deletes, but not for adds.
I'm wondering if something is missing from the add_multi_records subroutine.
The add_record subroutine has a call to auth_logging, but add_multi_records doesn't. Could this be the problem?
Nov 14, 2003, 11:10 AM
604
Staff
/ Moderator
(733 posts)
Nov 14, 2003, 11:10 AM
Post #6 of 6
Views: 3638
Shortcut
Re: [timbo] log files
In reply to
You're right! Here is the fixed code for add_multi_records subroutine:
...
my $ret = $self->{db}->add($hash);
if ( defined ($ret) ) {
$self->auth_logging('add record ') if ( $self->{cfg}->{log_file} );
$rec_added++;
}
....
TheStone.
B.
Previous Thread
Next Thread
Print Thread
View Threaded