Skip to content

Commit 73e9246

Browse files
Merge pull request #411 from treefrogframework/actions_yml6
Update testcase
2 parents 942b944 + 859b872 commit 73e9246

File tree

16 files changed

+249
-271
lines changed

16 files changed

+249
-271
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# ChangeLog
22

3+
## 2.10.0
4+
- Supported for std::format style log output, Tf::error(), Tf::warn(), Tf::info(), etc.
5+
- Fix a bug of tsharedmemory initiation.
6+
- Only Qt6 supported after this version (Qt5 not supported).
7+
38
## 2.9.0
49
- Fix a bug in the access log output regarding status codes.
510
- Modified to set NULL into DB when the value is QString() in TSqlObject.

docs/ch/user-guide/helper-reference/logging.md

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,31 @@ page_id: "080.050"
3232
参数可以像格式化字符串和变量的printf格式一样传递. 举例, 像这样:
3333

3434
```c++
35-
tError("Invalid Parameter : value : %d", value);
35+
tError("Invalid Parameter, value : %d", value);
3636
```
3737
3838
然后, 下面的记录将会输出到*log/app.log*文件:
3939
4040
```
41-
2011-04-01 21:06:04 ERROR [12345678] Invalid Parameter : value : -1
41+
2011-04-01 21:06:04 ERROR [12345678] Invalid Parameter, value : -1
4242
```
4343
4444
在格式化字符串的尾部不需要换行符.
4545
46+
在 TreeFrog 2.10 及更高版本中,如果编译器支持 stdc++20,则可以使用以下方法来描述 std::format 样式格式化.
47+
48+
* Tf::fatal()
49+
* Tf::error()
50+
* Tf::warn()
51+
* Tf::info()
52+
* Tf::debug()
53+
* Tf::trace()
54+
55+
其写法如下:
56+
```c++
57+
Tf::error("Invalid Parameter, value : {}", value);
58+
```
59+
4660
## 更改记录的布局
4761

4862
通过设置FileLogger能够改变记录输出的布局. 布局参数在配置文件*logger.ini*中.

docs/en/download/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ TreeFrog Installer for Qt 6 has been released. If installing it, the development
1313

1414
| Version | File |
1515
|-------------------------------------|--------------------------------------|
16-
| 2.9.0 for Visual Studio (Qt 6.7 or 6.6)| [<i class="fa fa-download" aria-hidden="true"></i> treefrog-2.9.0-msvc_64-setup.exe](https://github.com/treefrogframework/treefrog-framework/releases/download/v2.9.0/treefrog-2.9.0-msvc_64-setup.exe) |
16+
| 2.10.0 for Visual Studio (Qt 6.8 or 6.7)| [<i class="fa fa-download" aria-hidden="true"></i> treefrog-2.10.0-msvc_64-setup.exe](https://github.com/treefrogframework/treefrog-framework/releases/download/v2.10.0/treefrog-2.10.0-msvc_64-setup.exe) |
1717

1818
</div>
1919

@@ -25,7 +25,7 @@ The source code packages of TreeFrog Framework are available.
2525

2626
| Source | File |
2727
|----------------|----------------------------------|
28-
| version 2.9.0 | [<i class="fa fa-download" aria-hidden="true"></i> treefrog-framework-2.9.0.tar.gz](https://github.com/treefrogframework/treefrog-framework/archive/v2.9.0.tar.gz) |
28+
| version 2.10.0 | [<i class="fa fa-download" aria-hidden="true"></i> treefrog-framework-2.10.0.tar.gz](https://github.com/treefrogframework/treefrog-framework/archive/v2.10.0.tar.gz) |
2929

3030
</div>
3131

docs/en/index.md

Lines changed: 10 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -37,17 +37,24 @@ Try TreeFrog Framework which combines high productivity and high speed operation
3737

3838
## <i class="fa fa-bell" aria-hidden="true"></i> News
3939

40+
Nov. 30, 2024
41+
### TreeFrog Framework version 2.10.0 (stable) release <span style="color: red;">New!</span>
42+
43+
- Supported for std::format style log output, Tf::error(), Tf::warn(), Tf::info(), etc.
44+
- Fix a bug of tsharedmemory initiation.
45+
- Only Qt6 supported after this version (Qt5 not supported).
46+
47+
[<i class="fas fa-download"></i> Download this version](/en/download/)
48+
4049
Jun. 16, 2024
41-
### TreeFrog Framework version 2.9.0 (stable) release <span style="color: red;">New!</span>
50+
### TreeFrog Framework version 2.9.0 (stable) release
4251

4352
- Fix a bug in the access log output regarding status codes.
4453
- Modified to set NULL into DB when the value is QString() in TSqlObject.
4554
- Added a function, TAbstractModel::setProperties(const QJsonObject &properties).
4655
- Updated mongoc driver to v1.26.2.
4756
- Updated glog to v0.7.0.
4857

49-
[<i class="fas fa-download"></i> Download this version](/en/download/)
50-
5158
Dec. 10, 2023
5259
### TreeFrog Framework version 2.8.0 (stable) release
5360

@@ -70,43 +77,8 @@ Feb. 25, 2023
7077
- Updated system logger.
7178
- Performance improvement for pooling database connections.
7279

73-
Jan. 21, 2023
74-
### TreeFrog Framework version 2.6.1 (stable) release
75-
76-
- Fix a bug of outputting access log.
77-
- Added a link option for LZ4 shared library on Linux or macOS.
78-
79-
Jan. 2, 2023
80-
### TreeFrog Framework version 2.6.0 (stable) release
81-
82-
- Implemented in-memory KVS for cache system.
83-
- Added a link option for Glog shared library.
84-
- Fix bugs of macros for command line interface.
85-
- Updated LZ4 to v1.9.4.
86-
87-
Nov. 1, 2022
88-
### TreeFrog Framework version 2.5.0 (stable) release
89-
90-
- Implemented flushResponse() function to continue the process after sending a response.
91-
- Updated glog to v0.6.0
92-
- Performance improvement for redis client.
93-
- Implemented memcached client. [Experimental]
94-
- Implemented a cache-store for memcached, TCacheMemcachedStore class.
95-
96-
Aug. 13, 2022
97-
### TreeFrog Framework version 2.4.0 (stable) release
98-
99-
- Implemented memory store for cache.
100-
- Updated Mongo C driver to v1.21.2.
101-
102-
May 28, 2022
103-
### TreeFrog Framework version 2.3.1 (stable) release
104-
105-
- Fix compilation errors on Qt 6.3.
106-
10780
[<i class="fa fa-list" aria-hidden="true"></i> All changelogs](https://github.com/treefrogframework/treefrog-framework/blob/master/CHANGELOG.md)
10881

109-
11082
## <i class="fas fa-hand-holding-usd"></i> Support Development
11183

11284
TreeFrog Framework is New BSD licensed open source project and completely free to use. However, the amount of effort needed to maintain and develop new features for the project is not sustainable without proper financial backing. We accept donations from sponsors and individual donors via the following methods:

docs/en/user-guide/helper-reference/logging.md

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,31 @@ The application log is used for logging your Web application. There are several
3232
Arguments that can be passed here are the same as the printf-format of format string and a variable number. For example, like this:
3333

3434
```c++
35-
tError("Invalid Parameter : value : %d", value);
35+
tError("Invalid Parameter, value : %d", value);
3636
```
3737
3838
Then, the following log will be output to the *log/app.log* file:
3939
4040
```
41-
2011-04-01 21:06:04 ERROR [12345678] Invalid Parameter : value : -1
41+
2011-04-01 21:06:04 ERROR [12345678] Invalid Parameter, value : -1
4242
```
4343
4444
Line feed code is not required at the end of the format string.
4545
46+
In TreeFrog version 2.10 and later, if the compiler supports stdc++20, you can use the following methods to describe std::format style formatting.
47+
48+
* Tf::fatal()
49+
* Tf::error()
50+
* Tf::warn()
51+
* Tf::info()
52+
* Tf::debug()
53+
* Tf::trace()
54+
55+
It can be written as follows:
56+
```c++
57+
Tf::error("Invalid Parameter, value : {}", value);
58+
```
59+
4660
## Changing Log Layout
4761

4862
It is possible to change the layout of the log output, by setting FileLogger.Layout parameters in the configuration file *logger.ini*.

docs/ja/download/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Qt6 向けのインストーラを提供しています。セットアップす
1313

1414
| バージョン | ファイル |
1515
|------------------------------------------------|---------------------------------------|
16-
| 2.9.0 for Visual Studio 64bit (Qt6.7 or 6.6) | [<i class="fa fa-download" aria-hidden="true"></i> treefrog-2.9.0-msvc_64-setup.exe](https://github.com/treefrogframework/treefrog-framework/releases/download/v2.9.0/treefrog-2.9.0-msvc_64-setup.exe) |
16+
| 2.10.0 for Visual Studio 64bit (Qt6.8 or 6.7) | [<i class="fa fa-download" aria-hidden="true"></i> treefrog-2.10.0-msvc_64-setup.exe](https://github.com/treefrogframework/treefrog-framework/releases/download/v2.10.0/treefrog-2.10.0-msvc_64-setup.exe) |
1717

1818
</div>
1919

@@ -29,7 +29,7 @@ Qt6 向けのインストーラを提供しています。セットアップす
2929

3030
| ソースパッケージ | ファイル |
3131
|-------------------|----------------------------------|
32-
| バージョン 2.9.0 | [<i class="fa fa-download" aria-hidden="true"></i> treefrog-framework-2.9.0.tar.gz](https://github.com/treefrogframework/treefrog-framework/archive/v2.9.0.tar.gz) |
32+
| バージョン 2.10.0 | [<i class="fa fa-download" aria-hidden="true"></i> treefrog-framework-2.10.0.tar.gz](https://github.com/treefrogframework/treefrog-framework/archive/v2.10.0.tar.gz) |
3333

3434
</div>
3535

docs/ja/index.md

Lines changed: 9 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,22 @@ Webアプリの開発において、開発効率と動作速度はトレード
4040

4141
## <i class="fa fa-bell" aria-hidden="true"></i> お知らせ
4242

43-
### 2024/6/15 TreeFrog Framework バージョン2.9.0 (安定版)リリース <span style="color: red;">New!</span>
43+
### 2024/11/30 TreeFrog Framework バージョン2.10.0 (安定版)リリース <span style="color: red;">New!</span>
44+
45+
- std::format スタイルのログ出力に対応, Tf::error(), Tf::warn(), Tf::info()など
46+
- tsharedmemory初期化の不具合修正.
47+
- このバージョン以降 Qt6 のみサポート (Qt5は非サポート).
48+
49+
[<i class="fas fa-download"></i> ダウンロードはこちらから](/ja/download/)
50+
51+
### 2024/6/15 TreeFrog Framework バージョン2.9.0 (安定版)リリース
4452

4553
- ステータスコードに関するアクセスログ出力の不具合修正
4654
- TSqlObjectで値がQString()である場合にNULLを設定するように修正
4755
- TAbstractModel::setProperties(const QJsonObject &properties) 関数を追加
4856
- Mongoc driver を v1.26.2 に更新
4957
- glog を v0.7.0 に更新
5058

51-
[<i class="fas fa-download"></i> ダウンロードはこちらから](/ja/download/)
52-
5359
### 2023/12/10 TreeFrog Framework バージョン2.8.0 (安定版)リリース
5460

5561
- PostgreSQL と MySQL のプリペアドステートメントを対応
@@ -69,35 +75,6 @@ Webアプリの開発において、開発効率と動作速度はトレード
6975
- システムロガーを更新
7076
- データベース接続プーリングのパフォーマンス改善
7177

72-
### 2023/1/21 TreeFrog Framework バージョン2.6.1 (安定版)リリース
73-
74-
- アクセスログ出力の不具合修正
75-
- LZ4と共有リンクするオプションを追加(Linux または macOS)
76-
77-
### 2023/1/2 TreeFrog Framework バージョン2.6.0 (安定版)リリース
78-
79-
- キャッシュ用のインメモリKVSを実装
80-
- Glogと共有リンクするオプションを追加
81-
- コマンドライン向けマクロの不具合修正
82-
- LZ4をv1.9.4に更新
83-
84-
### 2022/11/1 TreeFrog Framework バージョン2.5.0 (安定版)リリース
85-
86-
- レスポンス送信後に処理を継続するためにflushResponse()関数を実装
87-
- glogバージョン0.6.0に更新
88-
- Redisクライアントのパフォーマンス改善
89-
- Memcachedクライアントの実装 [実験的]
90-
- Memcached用のキャッシュストア(TCacheMemcachedStoreクラス)の実装
91-
92-
### 2022/8/13 TreeFrog Framework バージョン2.4.0 (安定版)リリース
93-
94-
- キャッシュ用のメモリストアを実装
95-
- Mongo C ドライバをバージョン1.21.2に更新
96-
97-
### 2022/5/28 TreeFrog Framework バージョン2.3.1 (安定版)リリース
98-
99-
- Qt 6.3 でのコンパイルエラーを解消
100-
10178
[<i class="fa fa-list" aria-hidden="true"></i> 全ての変更履歴](https://github.com/treefrogframework/treefrog-framework/blob/master/CHANGELOG.md)
10279

10380

docs/ja/user-guide/helper-reference/logging.md

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,31 @@ Webアプリは、以下の4つのログを出力します。
3232
渡せる引数は printf 形式と同じで、フォーマット文字列と可変個の変数です。例えば、こんな感じに使います。
3333

3434
```c++
35-
tError("Invalid Parameter : value : %d", value);
35+
tError("Invalid Parameter, value : %d", value);
3636
```
3737
3838
すると、次のようなログが log/app.log ファイルに出力されるでしょう。
3939
4040
```
41-
2011-04-01 21:06:04 ERROR [12345678] Invalid Parameter : value : -1
41+
2011-04-01 21:06:04 ERROR [12345678] Invalid Parameter, value : -1
4242
```
4343
4444
フォーマット文字列の末尾には改行コードは不要です。
4545
46+
TreeFrog バージョン2.10以降では、stdc++20をサポートしたコンパイラであれば、次のメソッドで std::format スタイルの書式を記述できます。
47+
48+
* Tf::fatal()
49+
* Tf::error()
50+
* Tf::warn()
51+
* Tf::info()
52+
* Tf::debug()
53+
* Tf::trace()
54+
55+
次のように記述できます。
56+
```c++
57+
Tf::error("Invalid Parameter, value : {}", value);
58+
```
59+
4660
## ログのレイアウト変更
4761

4862
出力されるログのレイアウトを変更することが可能です。logger.ini 設定ファイルにある FileLogger.Layout パラメータに設定します。

installer/create_installer.bat

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ set LIB=
2525
set PATH=C:\WINDOWS\system32;C:\WINDOWS
2626

2727
call "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat" amd64
28-
call :build_msi "%QTBASE%\6.7.1\msvc2019_64\bin\qtenv2.bat" 6.7
28+
call :build_msi "%QTBASE%\6.8.0\msvc2022_64\bin\qtenv2.bat" 6.8
2929

3030
:: Clear environment variables
3131
set VCToolsVersion=
@@ -36,7 +36,7 @@ set LIB=
3636
set PATH=C:\WINDOWS\system32;C:\WINDOWS
3737

3838
call "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat" amd64
39-
call :build_msi "%QTBASE%\6.6.3\msvc2019_64\bin\qtenv2.bat" 6.6
39+
call :build_msi "%QTBASE%\6.7.3\msvc2022_64\bin\qtenv2.bat" 6.7
4040

4141
call :build_setup treefrog-%VERSION%-msvc_64-setup.exe
4242

installer/msi/TreeFrog.wxs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
<!-- *** 基本的に 9行目,10行目,42行目,54行目も修正する (guidgen使用) *** -->
66

77
<!-- プロダクト情報 -->
8-
<Product Name='TreeFrog Framework 2.9.0'
9-
Id="DDB2A2E5-ECD1-4C0F-998F-533149FB3637"
10-
UpgradeCode="39124F5E-CBB3-4A79-90A0-C47729C9F506"
8+
<Product Name='TreeFrog Framework 2.10.0'
9+
Id="E62F0889-126C-4B96-B216-14A4E5B4409A"
10+
UpgradeCode="EF057FD0-AB58-44D9-AB7F-23138622F72A"
1111
Language='1041' Codepage='932'
12-
Version='2.9.0' Manufacturer='TreeFrog Framework Project'>
12+
Version='2.10.0' Manufacturer='TreeFrog Framework Project'>
1313

1414
<!-- パッケージ情報 -->
1515
<Package Id='*' Keywords='Installer'
@@ -27,21 +27,21 @@
2727
<Directory Id='TARGETDIR' Name='SourceDir'>
2828
<Directory Id='WINDOWSVOLUME'>
2929
<Directory Id='INSTALLDIR' Name='TreeFrog'>
30-
<Directory Id='VERSIONDIR' Name='2.9.0'>
30+
<Directory Id='VERSIONDIR' Name='2.10.0'>
3131
</Directory>
3232
</Directory>
3333
</Directory>
3434
<Directory Id="DesktopFolder" SourceName="Desktop"/>
3535
<Directory Id="ProgramMenuFolder">
36-
<Directory Id="ApplicationProgramsFolder" Name="TreeFrog Framework 2.9.0"/>
36+
<Directory Id="ApplicationProgramsFolder" Name="TreeFrog Framework 2.10.0"/>
3737
</Directory>
3838
</Directory>
3939

4040
<!-- デスクトップショートカット -->
4141
<DirectoryRef Id="DesktopFolder">
42-
<Component Id="DesktopShortcut" Guid="4CA80893-F007-4E29-A3B5-530ACE94C7EB">
42+
<Component Id="DesktopShortcut" Guid="70D025DC-2123-4D90-8F58-94C02E1274D1">
4343
<Shortcut Id="PromptDesktopShortcut"
44-
Name="TreeFrog Prompt 2.9.0"
44+
Name="TreeFrog Prompt 2.10.0"
4545
Description="TreeFrog Framework Prompt"
4646
Target="[SystemFolder]cmd.exe" Arguments="/K [VERSIONDIR]bin\\tfenv.bat"
4747
WorkingDirectory="PersonalFolder"/>
@@ -51,12 +51,12 @@
5151

5252
<!-- プログラムメニューショートカット -->
5353
<DirectoryRef Id="ApplicationProgramsFolder">
54-
<Component Id="ApplicationShortcut" Guid="BE257E94-EA18-477F-B585-49E9D1B0E0C5">
54+
<Component Id="ApplicationShortcut" Guid="29D7EA6D-B7C3-4516-A141-FDB7F307502D">
5555
<CreateFolder Directory="ApplicationProgramsFolder"/>
5656

5757
<!-- Shortcut to TF prompt-->
5858
<Shortcut Id="PromptProgramMenuShortcut"
59-
Name="TreeFrog Prompt 2.9.0"
59+
Name="TreeFrog Prompt 2.10.0"
6060
Description="TreeFrog Framework Prompt"
6161
Target="[SystemFolder]cmd.exe" Arguments="/K [VERSIONDIR]bin\\tfenv.bat"
6262
WorkingDirectory="PersonalFolder"/>

installer/treefrog-setup/treefrog-setup/AssemblyInfo.cpp

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ using namespace System::Runtime::InteropServices;
77
using namespace System::Security::Permissions;
88

99
//
10-
// アセンブリに関する一般情報は以下の属性セットをとおして制御されます。
11-
// アセンブリに関連付けられている情報を変更するには、
12-
// これらの属性値を変更してください。
10+
// アセンブリに関する一般情報は以下の属性セットをとおして制御されます。
11+
// アセンブリに関連付けられている情報を変更するには、
12+
// これらの属性値を変更してください。
1313
//
1414
[assembly:AssemblyTitleAttribute("treefrogsetup")];
1515
[assembly:AssemblyDescriptionAttribute("")];
@@ -21,19 +21,18 @@ using namespace System::Security::Permissions;
2121
[assembly:AssemblyCultureAttribute("")];
2222

2323
//
24-
// アセンブリのバージョン情報は、以下の 4 つの値で構成されています:
24+
// アセンブリのバージョン情報は、以下の 4 つの値で構成されています:
2525
//
2626
// Major Version
2727
// Minor Version
2828
// Build Number
2929
// Revision
3030
//
31-
// すべての値を指定するか、下のように '*' を使ってリビジョンおよびビルド番号を
32-
// 既定値にすることができます:
31+
// すべての値を指定するか、下のように '*' を使ってリビジョンおよびビルド番号を
32+
// 既定値にすることができます:
3333

3434
[assembly:AssemblyVersionAttribute("2.10.0")];
3535

3636
[assembly:ComVisible(false)];
3737

3838
[assembly:CLSCompliantAttribute(true)];
39-

0 commit comments

Comments
 (0)