~ubuntu-branches/ubuntu/quantal/poco/quantal

« back to all changes in this revision

Viewing changes to Foundation/src/FileChannel.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Krzysztof Burghardt
  • Date: 2008-11-15 11:39:15 UTC
  • mfrom: (3.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20081115113915-7kauhm2c3m2i7oid
Tags: 1.3.3p1-2
* Fixed FTBFS with GCC 4.4 due to missing #include (Closes: #505619)
* Renamed 20_gcc43-missing-include.dpatch to 20_gcc44-missing-include.dpatch
* Downgraded dependencies on -dbg packages (Closes: #504342)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
//
2
2
// FileChannel.cpp
3
3
//
4
 
// $Id: //poco/1.3/Foundation/src/FileChannel.cpp#2 $
 
4
// $Id: //poco/1.3/Foundation/src/FileChannel.cpp#3 $
5
5
//
6
6
// Library: Foundation
7
7
// Package: Logging
130
130
                {
131
131
                        _pFile = new LogFile(_path);
132
132
                }
 
133
                // we must call mustRotate() again to give the
 
134
                // RotateByIntervalStrategy a chance to write its timestamp
 
135
                // to the new file.
 
136
                _pRotateStrategy->mustRotate(_pFile);
133
137
        }
134
138
        _pFile->write(msg.getText());
135
139
}
240
244
                pStrategy = new RotateByIntervalStrategy(Timespan(30*Timespan::DAYS));
241
245
        else if (unit == "seconds") // for testing only
242
246
                pStrategy = new RotateByIntervalStrategy(Timespan(n*Timespan::SECONDS));
 
247
        else if (unit == "minutes")
 
248
                pStrategy = new RotateByIntervalStrategy(Timespan(n*Timespan::MINUTES));
243
249
        else if (unit == "hours")
244
250
                pStrategy = new RotateByIntervalStrategy(Timespan(n*Timespan::HOURS));
245
251
        else if (unit == "days")