57 size_t _current_size;
58
59 // Semaphore used for synchronizing file rotations and writes
60 Semaphore _rotation_semaphore;
61
62 void archive();
63 void rotate();
64 bool configure_rotation(const char* options);
65 char *make_file_name(const char* file_name, const char* pid_string, const char* timestamp_string);
66 static size_t parse_value(const char* value_str);
67
68 bool should_rotate() {
69 return _file_count > 0 && _rotate_size > 0 && _current_size >= _rotate_size;
70 }
71
72 public:
73 LogFileOutput(const char *name);
74 virtual ~LogFileOutput();
75 virtual bool initialize(const char* options);
76 virtual int write(const LogDecorations& decorations, const char* msg);
77 virtual void force_rotate();
78
79 virtual const char* name() const {
80 return _name;
81 }
82
83 static void set_file_name_parameters(jlong start_time);
84 };
85
86 #endif // SHARE_VM_LOGGING_LOGFILEOUTPUT_HPP
|
57 size_t _current_size;
58
59 // Semaphore used for synchronizing file rotations and writes
60 Semaphore _rotation_semaphore;
61
62 void archive();
63 void rotate();
64 bool configure_rotation(const char* options);
65 char *make_file_name(const char* file_name, const char* pid_string, const char* timestamp_string);
66 static size_t parse_value(const char* value_str);
67
68 bool should_rotate() {
69 return _file_count > 0 && _rotate_size > 0 && _current_size >= _rotate_size;
70 }
71
72 public:
73 LogFileOutput(const char *name);
74 virtual ~LogFileOutput();
75 virtual bool initialize(const char* options);
76 virtual int write(const LogDecorations& decorations, const char* msg);
77 virtual int write(LogMessage::Iterator msg_iterator);
78 virtual void force_rotate();
79
80 virtual const char* name() const {
81 return _name;
82 }
83
84 static void set_file_name_parameters(jlong start_time);
85 };
86
87 #endif // SHARE_VM_LOGGING_LOGFILEOUTPUT_HPP
|