From 499319f4bc959a2a8b303c725e51a4efe0009407 Mon Sep 17 00:00:00 2001 From: ray Date: Fri, 12 Sep 2003 02:31:14 +0000 Subject: [PATCH] Allow construction from just a File. git-svn-id: https://samskivert.googlecode.com/svn/trunk@1217 6335cc39-0255-0410-8fd6-9bcaacd3b74c --- .../src/java/com/samskivert/util/AuditLogger.java | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/projects/samskivert/src/java/com/samskivert/util/AuditLogger.java b/projects/samskivert/src/java/com/samskivert/util/AuditLogger.java index 59f84a88..aec00dd0 100644 --- a/projects/samskivert/src/java/com/samskivert/util/AuditLogger.java +++ b/projects/samskivert/src/java/com/samskivert/util/AuditLogger.java @@ -1,5 +1,5 @@ // -// $Id: AuditLogger.java,v 1.2 2003/08/04 21:03:09 ray Exp $ +// $Id: AuditLogger.java,v 1.3 2003/09/12 02:31:14 ray Exp $ package com.samskivert.util; @@ -30,7 +30,15 @@ public class AuditLogger */ public AuditLogger (File path, String filename) { - _logPath = new File(path, filename); + this(new File(path, filename)); + } + + /** + * Creates an audit logger that logs to the specified file. + */ + public AuditLogger (File fullpath) + { + _logPath = fullpath; openLog(true); // update the day format